1
0
Fork 0
forked from github/pelican

Replace underscores in dates with spaces before parsing

This commit is contained in:
Kernc 2014-11-17 06:54:22 +01:00
commit 88d19d47b5

View file

@ -30,7 +30,7 @@ from pelican.utils import get_date, pelican_open, FileStampDataCacher, SafeDatet
METADATA_PROCESSORS = {
'tags': lambda x, y: [Tag(tag, y) for tag in x.split(',')],
'date': lambda x, y: get_date(x),
'date': lambda x, y: get_date(x.replace('_', ' ')),
'modified': lambda x, y: get_date(x),
'status': lambda x, y: x.strip(),
'category': Category,