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

Patrick Kollitsch
9 days ago 616c518977603b88c3a86775134417016a614d98
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 00:10 +0100
commit616c518977603b88c3a86775134417016a614d98
tree 77c2be88fb79c7701bafdf3a0e57a00353c8f72f tree | zip | gz
parent d163a6c6b5e8aea8e54bac3940b9dd3ce7c0d012 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