feat: child menu support in navbar (#695)

* feat: implement child menu support in main navbar

- Added a new JavaScript file for handling dropdown functionality in the navbar.
- Implemented event listeners for toggling dropdowns, closing them on outside clicks, and dismissing with the Escape key.
- Updated navbar HTML to support dropdown items with children, enhancing the navigation experience.
- Adjusted core script imports to include the new dropdown functionality.

* chore: update menu identifiers and add missing translations for development versions

* chore: update hugo stats

* chore: update script name

* chore: update menu item names to include arrows for external links
This commit is contained in:
Xin
2025-06-01 17:33:45 +01:00
committed by GitHub
parent a44de285b2
commit c24d55ee40
8 changed files with 145 additions and 18 deletions

View File

@ -121,6 +121,9 @@
"hextra-max-footer-width",
"hextra-max-navbar-width",
"hextra-max-page-width",
"hextra-nav-menu-item",
"hextra-nav-menu-items",
"hextra-nav-menu-toggle",
"hextra-pdf",
"hextra-scrollbar",
"hextra-sidebar-collapsible-button",
@ -311,6 +314,7 @@
"hx:duration-200",
"hx:duration-75",
"hx:ease-in",
"hx:ease-in-out",
"hx:first:mt-0",
"hx:flex",
"hx:flex-col",