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

Patrick Kollitsch
13 hours ago d0a424ee5cd2cc31a76261127880c40b51a865a4
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 12:51 +0100
commitd0a424ee5cd2cc31a76261127880c40b51a865a4
tree a008ce7a43b9753abef2d9978c12e486c7be2a4c tree | zip | gz
parent cac4f885c36ab9bd3c00995859462cf3448cd4e9 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