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

Patrick Kollitsch
yesterday b6785057542b5ebf5b9a2df3e2de32ed37b3979f
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 09:03 +0100
commitb6785057542b5ebf5b9a2df3e2de32ed37b3979f
tree 7da49cd9ba82190706d695e9c878844fd361533b tree | zip | gz
parent 427116e1713491700140a71384727c3494f8a749 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