Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #2114
  • Loading branch information
ralsina committed Sep 23, 2015
1 parent 8840c71 commit 7e6e973
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -11,6 +11,7 @@ Features
Bugfixes
--------

* Support setting template in metadata in translated posts (Issue #2114)
* Fix false orphan report for code.css and robots.txt (Issue #2106)
* Fix reST post list date formatting error (Issue #2104)
* Deprecated ``RSS_TEASERS``, ``RSS_PLAIN``, ``RSS_READ_MORE_LINK``, and
Expand Down
3 changes: 2 additions & 1 deletion nikola/post.py
Expand Up @@ -323,7 +323,8 @@ def next_post(self, v):
@property
def template_name(self):
"""Return template name for this post."""
return self.meta('template') or self._template_name
lang = nikola.utils.LocaleBorg().current_lang
return self.meta[lang]['template'] or self._template_name

def formatted_date(self, date_format, date=None):
"""Return the formatted date as unicode."""
Expand Down

0 comments on commit 7e6e973

Please sign in to comment.