forked from github/pelican
parent
00e1b68e74
commit
e55e550198
1 changed files with 1 additions and 1 deletions
|
|
@ -520,7 +520,7 @@ def default_metadata(settings=None, process=None):
|
|||
if process:
|
||||
value = process('category', value)
|
||||
metadata['category'] = value
|
||||
if 'DEFAULT_DATE' in settings and settings['DEFAULT_DATE'] != 'fs':
|
||||
if settings.get('DEFAULT_DATE', None) and settings['DEFAULT_DATE'] != 'fs':
|
||||
metadata['date'] = datetime.datetime(*settings['DEFAULT_DATE'])
|
||||
return metadata
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue