springheel.gentopnav module¶
Generate site navigation.
-
springheel.gentopnav.
genTopNav
(characters_page: bool, extras_page: bool, store_page: Union[str, bool], translated_strings: dict, gen_about: bool) → str¶ Generate the navigation at the top of each page.
- Parameters
- characters_pagebool
Whether or not to link to the characters page.
- extras_pagebool
Whether or not to link to an extras page.
- store_pagestr
If not None, a URL to an external store page.
- translated_stringsdict
The translation file contents for this site.
- gen_aboutbool
Whether or not to include
about.html
in the navigation.
- Returns
- str
An HTML unordered list of navigation links.