forked from github/pelican
Add the possibility to publish drafts. Fixes #111
This commit is contained in:
parent
1171d24f3f
commit
6b44d93780
5 changed files with 32 additions and 6 deletions
|
|
@ -62,6 +62,9 @@ class Page(object):
|
|||
if not hasattr(self, 'summary'):
|
||||
self.summary = property(lambda self: truncate_html_words(self.content, 50)).__get__(self, Page)
|
||||
|
||||
if not hasattr(self, 'status'):
|
||||
self.status = settings['DEFAULT_STATUS']
|
||||
|
||||
# store the settings ref.
|
||||
self._settings = settings
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue