mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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)
|
self.add_source_path(article)
|
||||||
|
|
||||||
if article.status == "published":
|
if article.status.lower() == "published":
|
||||||
all_articles.append(article)
|
all_articles.append(article)
|
||||||
elif article.status == "draft":
|
elif article.status.lower() == "draft":
|
||||||
self.drafts.append(article)
|
self.drafts.append(article)
|
||||||
else:
|
else:
|
||||||
logger.warning("Unknown status %s for file %s, skipping it." %
|
logger.warning("Unknown status %s for file %s, skipping it." %
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue