mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
The modified attribute no longer has a default value.
This allows for templates using {% if article.modified %}
instead of {% if article.modified != article.published %} .
This commit is contained in:
parent
3b0823f5e6
commit
bd9d1b9539
54 changed files with 115 additions and 251 deletions
|
|
@ -113,8 +113,6 @@ 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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue