Permalink
Browse files

Write out the "draft" header in each entry if present

  • Loading branch information...
1 parent 21dc698 commit 35f804801503543dcdd9851f2fee4cb0291e3e0b @geekman geekman committed Nov 26, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 acrylamid/tasks/imprt.py
View
@@ -340,6 +340,8 @@ def create(defaults, item):
f.write(u'author: %s\n' % (item.get('author') or defaults.get('author')))
f.write(u'date: %s\n' % item['date'].strftime(conf['date_format']))
#f.write(u'filter: %s\n' % item['filter'])
+ if 'draft' in item:
+ f.write(u'draft: %s\n' % item['draft'])
if 'tags' in item:
f.write(u'tags: [%s]\n' % ', '.join(item['tags']))
if 'permalink' in item:

0 comments on commit 35f8048

Please sign in to comment.