forked from github/pelican
Fix typo for updated and failure for None. #1933
This commit is contained in:
parent
e0769fe2a3
commit
66410b9396
1 changed files with 3 additions and 3 deletions
|
|
@ -56,9 +56,9 @@ class Writer(object):
|
|||
author_name=getattr(item, 'author', ''),
|
||||
pubdate=set_date_tzinfo(
|
||||
item.date, self.settings.get('TIMEZONE', None)),
|
||||
pubdate=set_date_tzinfo(
|
||||
item.modified if hasattr(item, 'modified') else None,
|
||||
self.settings.get('TIMEZONE', None)))
|
||||
updateddate=set_date_tzinfo(
|
||||
item.modified, self.settings.get('TIMEZONE', None)
|
||||
) if hasattr(item, 'modified') else None)
|
||||
|
||||
def _open_w(self, filename, encoding, override=False):
|
||||
"""Open a file to write some content to it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue