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

Patrick Kollitsch
13 hours ago 56aed55a85f9cc4bd3c988cc4f5a576ce69976de
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
commit56aed55a85f9cc4bd3c988cc4f5a576ce69976de
tree 17190ec730a2900ed191792aed71002846b8a687 tree | zip | gz
parent 5737b2f7dcf2625758898e9bafeedade1be842d1 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