mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #1621 from iKevinY/pages-status-fix
Make page status check case-insensitive. Fixes #1620
This commit is contained in:
commit
6c4f0d7894
1 changed files with 2 additions and 2 deletions
|
|
@ -641,9 +641,9 @@ class PagesGenerator(CachingGenerator):
|
||||||
|
|
||||||
self.add_source_path(page)
|
self.add_source_path(page)
|
||||||
|
|
||||||
if page.status == "published":
|
if page.status.lower() == "published":
|
||||||
all_pages.append(page)
|
all_pages.append(page)
|
||||||
elif page.status == "hidden":
|
elif page.status.lower() == "hidden":
|
||||||
hidden_pages.append(page)
|
hidden_pages.append(page)
|
||||||
else:
|
else:
|
||||||
logger.error("Unknown status '%s' for file %s, skipping it.",
|
logger.error("Unknown status '%s' for file %s, skipping it.",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue