Skip to content
Permalink
Browse files

Fix #2391 -- depend on post list template

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 7, 2016
1 parent 7b9a391 commit 77a998d925cf533f412ba84308e8a9a03b82a082
Showing with 5 additions and 0 deletions.
  1. +1 −0 CHANGES.txt
  2. +4 −0 nikola/plugins/compile/rest/post_list.py
@@ -12,6 +12,7 @@ Features
Bugfixes
--------

* Register post list template as a dependency (Issue #2391)
* Fix section color hashing when using Python 2
* Use ``en_US`` dictionary name with pyphen for better compatibility
* Fix graceful degradation if ``pyphen`` lacks dictionaries
@@ -232,6 +232,10 @@ def _do_post_list(start=None, stop=None, reverse=False, tags=None, categories=No
if not posts:
return []

# Register template as a dependency (Issue #2391)
state.document.settings.record_dependencies.add(
site.template_system.get_template_path(template))

template_data = {
'lang': lang,
'posts': posts,

0 comments on commit 77a998d

Please sign in to comment.
You can’t perform that action at this time.