Skip to content

Commit

Permalink
generate: Handle hidden pages
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Nov 14, 2024
1 parent 6781248 commit e3fb671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def gen_page(entry, override, prefix, **variables):
page_raw_path, section, entry),
page_title="%s - %s" % (item['title'],
entry),
page_menu=item['menu'] + [entry],
page_menu=item.get('menu', []) + [entry],
content=content,
**variables))

Expand Down

0 comments on commit e3fb671

Please sign in to comment.