Added a new ''modified:' metadata tag to be able to specify the

publication time and date and the last modified time and date
independently.

This makes it possible to access the last updated date with {{ article.locale_modified }} in templates.
Additionally, an already delivered feed entry can be corrected by changing the modified date and time, as it is used for atom:update
/ rss pubDate field now.
This commit is contained in:
Florian Jacob 2013-11-05 19:38:58 +01:00
commit 4b2fcb09a4
73 changed files with 381 additions and 152 deletions

View file

@ -113,6 +113,10 @@ class Content(object):
if hasattr(self, 'date'):
self.locale_date = strftime(self.date, self.date_format)
if not hasattr(self, 'modified'):
self.modified = self.date
if hasattr(self, 'modified'):
self.locale_modified = strftime(self.modified, self.date_format)
# manage status
if not hasattr(self, 'status'):