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

Patrick Kollitsch
13 hours ago e49c67f8baeac0e074e5c7ac5ab870e76ea014c2
refs
author Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Thursday, November 19, 2026 09:19 +0100
committer Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Thursday, November 19, 2026 09:19 +0100
commite49c67f8baeac0e074e5c7ac5ab870e76ea014c2
tree 9795cf62d6ab9b1143727a9959be7cdcbd75dc01 tree | zip | gz
parent d8f19b60bbdac80015687695fd5493681bb3922f 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