mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Create a Category class which has a url property
This commit is contained in:
parent
2de789325f
commit
6754099730
6 changed files with 27 additions and 5 deletions
|
|
@ -15,6 +15,7 @@ except ImportError:
|
|||
Markdown = False
|
||||
import re
|
||||
|
||||
from pelican.contents import Category
|
||||
from pelican.utils import get_date, open
|
||||
|
||||
|
||||
|
|
@ -22,6 +23,7 @@ _METADATA_PROCESSORS = {
|
|||
'tags': lambda x: map(unicode.strip, unicode(x).split(',')),
|
||||
'date': lambda x: get_date(x),
|
||||
'status': unicode.strip,
|
||||
'category': Category,
|
||||
}
|
||||
|
||||
def _process_metadata(name, value):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue