Skip to content
Permalink
Browse files

Fix #2114

  • Loading branch information
ralsina committed Sep 23, 2015
1 parent 8840c71 commit 7e6e97355e289ff96bb2ba02a61cef1cc20e530a
Showing with 3 additions and 1 deletion.
  1. +1 −0 CHANGES.txt
  2. +2 −1 nikola/post.py
@@ -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
@@ -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."""

0 comments on commit 7e6e973

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