forked from github/pelican
Merge pull request #1533 from kernc/underscore_dates
Replace underscores in dates with spaces before parsing
This commit is contained in:
commit
88ec7026ea
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue