Skip to content

Commit

Permalink
Merge pull request #8 from Sogolumbo/Sogolumbo-patch-hidden-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer authored Jun 13, 2024
2 parents fd13a28 + e58686b commit a71349b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pelican/plugins/simple_footnotes/simple_footnotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,17 @@ def sequence_gen(genlist):
def parse_for_footnotes(article_or_page_generator):
all_content = [
getattr(article_or_page_generator, attr, None)
for attr in ["articles", "drafts", "pages"]
for attr in [
"articles",
"translations",
"drafts",
"drafts_translations",
"pages",
"hidden_pages",
"hidden_translations",
"draft_pages",
"draft_translations",
]
]
all_content = [x for x in all_content if x is not None]
for article in sequence_gen(all_content):
Expand Down

0 comments on commit a71349b

Please sign in to comment.