forked from github/pelican
Merge pull request #1179 from jculpon/draft-casing
Make marking articles as drafts case-insensitive
This commit is contained in:
commit
2dede23a3d
1 changed files with 2 additions and 2 deletions
|
|
@ -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." %
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue