Fix a FAQ mistake.

This commit is contained in:
Alexis Metaireau 2010-11-15 18:58:54 +00:00
commit 32102dae12
4 changed files with 8 additions and 5 deletions

View file

@ -12,6 +12,7 @@ class Page(object):
def __init__(self, content, metadatas={}, settings={}, filename=None):
self.content = content
self.status = "published" # default value
for key, value in metadatas.items():
setattr(self, key, value)

View file

@ -11,7 +11,8 @@ from pelican.utils import get_date, open
_METADATAS_FIELDS = {'tags': lambda x: x.split(', '),
'date': lambda x: get_date(x),
'category': lambda x: x,
'author': lambda x: x}
'author': lambda x: x,
'status': lambda x:x.strip(),}
class RstReader(object):