1
0
Fork 0
forked from github/pelican

Merge pull request #1179 from jculpon/draft-casing

Make marking articles as drafts case-insensitive
This commit is contained in:
Justin Mayer 2013-12-04 10:59:45 -08:00
commit 2dede23a3d

View file

@ -407,9 +407,9 @@ class ArticlesGenerator(Generator):
self.add_source_path(article)
if article.status == "published":
if article.status.lower() == "published":
all_articles.append(article)
elif article.status == "draft":
elif article.status.lower() == "draft":
self.drafts.append(article)
else:
logger.warning("Unknown status %s for file %s, skipping it." %