mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
yesterday 15aa6ddc79d07e2f3514bf899351a65aaed2ce0b
refs
author Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Thursday, November 19, 2026 09:19 +0100
committer Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Friday, November 20, 2026 09:03 +0100
commit15aa6ddc79d07e2f3514bf899351a65aaed2ce0b
tree 9a73ac1b518cc23851eba1810b1a5e2791e7f76e tree | zip | gz
parent c2c6cedbe4f280e539d5890983b4be14123742cd view | diff
feat(layouts): restructure header navigation for hooks and class params

Give every navigation element a stable `ananke-nav-*` or `ananke-submenu*` hook class. Its Tachyons classes are now defaults that `[params.ananke.navigation.classes]` replaces per element (nav, inner, brand, toggle, panel, menu, item, link, submenu_toggle, submenu, submenu_link). Defaults match the previous classes, so flat menus on large screens look the same.

Add a menu button (hidden until JavaScript runs) and wrap languages, menu, and social links in a collapsible panel. Add the `navigation-start` hook after the brand link, for example for a search box, and the `navigation-end` hook at the end of the panel. Submenus get compact Tachyons defaults: `br2`, a `b--white-20` border, and `hover-bg-white-10` rows.
2 files modified
121 ■■■■■ changed files
config/_default/params.toml 16 ●●●●● diff | view | raw | blame | history
layouts/_partials/site-navigation.html 105 ●●●●● diff | view | raw | blame | history