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

Patrick Kollitsch
16 hours ago 3a785d028a6b47ce729b8d6195f49a60ba970cb2
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
commit3a785d028a6b47ce729b8d6195f49a60ba970cb2
tree 4e1f698a79149df8ef41e91db64714061a125431 tree | zip | gz
parent 3dafeea62409dd3ece9c725a4560b41adaee7769 view | diff
feat(layouts): add menu button behaviour to the navigation script

Include the navigation script whenever the site has a main menu. It reveals the menu button, collapses the panel, toggles it, and closes it on Escape with focus back on the button. Close a submenu on focus leaving only for keyboard navigation: with inline submenus, closing on pointer focus moved the target of the click in progress.
1 files modified
90 ■■■■■ changed files
layouts/_partials/site-scripts.html 90 ●●●●● diff | view | raw | blame | history