Skip to content

Commit

Permalink
Merge pull request #1621 from iKevinY/pages-status-fix
Browse files Browse the repository at this point in the history
Make page status check case-insensitive. Fixes #1620
  • Loading branch information
justinmayer committed Feb 16, 2015
2 parents c139221 + 954c85a commit 6c4f0d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pelican/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,9 +641,9 @@ def generate_context(self):

self.add_source_path(page)

if page.status == "published":
if page.status.lower() == "published":
all_pages.append(page)
elif page.status == "hidden":
elif page.status.lower() == "hidden":
hidden_pages.append(page)
else:
logger.error("Unknown status '%s' for file %s, skipping it.",
Expand Down

0 comments on commit 6c4f0d7

Please sign in to comment.