Skip to content

Commit

Permalink
Fix #2391 -- depend on post list template
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 7, 2016
1 parent 7b9a391 commit 77a998d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions nikola/plugins/compile/rest/post_list.py
Expand Up @@ -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,
Expand Down

0 comments on commit 77a998d

Please sign in to comment.