mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge 46d2b519fc into 455c159b48
This commit is contained in:
commit
757022eb3a
2 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue