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

Patrick Kollitsch
13 hours ago 706d54d3a2c3cea748b0f49a9af23c32a944809c
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
commit706d54d3a2c3cea748b0f49a9af23c32a944809c
tree 6185bbccc864f353954448d6702b76f922343195 tree | zip | gz
parent 9a960dac7005030df28658e77215d98ed430e6cf 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