Skip to content

Commit

Permalink
Fix #2104 -- fix post-list date formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Sep 20, 2015
1 parent 1a4cd48 commit 7ab1862
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.txt
@@ -1,4 +1,4 @@
New in Master
New in master
=============

Features
Expand All @@ -7,6 +7,7 @@ Features
Bugfixes
--------

* Fix reST post list date formatting error (Issue #2104)
* /robots.txt was never being built (Issue #2098)

New in v7.7.1
Expand Down
3 changes: 2 additions & 1 deletion nikola/plugins/compile/rest/post_list.py
Expand Up @@ -204,7 +204,8 @@ def run(self):
template_data = {
'lang': lang,
'posts': posts,
'date_format': self.site.GLOBAL_CONTEXT.get('date_format'),
# Need to provide str, not TranslatableSetting (Issue #2104)
'date_format': self.site.GLOBAL_CONTEXT.get('date_format')[lang],
'post_list_id': post_list_id,
}
output = self.site.template_system.render_template(
Expand Down

0 comments on commit 7ab1862

Please sign in to comment.