This commit is contained in:
Talha Mansoor 2013-11-09 11:50:07 -08:00
commit 757022eb3a
2 changed files with 3 additions and 0 deletions

View file

@ -301,6 +301,7 @@ this metadata in text files via the following syntax (give your file the
##############
:date: 2010-10-03 10:20
:modified_date: 2011-01-10 16:56
:tags: thats, awesome
:category: yeah
:slug: my-super-post
@ -320,6 +321,7 @@ pattern::
Title: My super title
Date: 2010-12-03 10:20
Modified_date: 2011-01-10 16:56
Category: Python
Tags: pelican, publishing
Slug: my-super-post

View file

@ -42,6 +42,7 @@ from pelican.utils import get_date, pelican_open
METADATA_PROCESSORS = {
'tags': lambda x, y: [Tag(tag, y) for tag in x.split(',')],
'date': lambda x, y: get_date(x),
'modified_date': lambda x, y: get_date(x),
'status': lambda x, y: x.strip(),
'category': Category,
'author': Author,