mirror of
https://github.com/imfing/hextra.git
synced 2025-08-23 20:36:37 -04:00
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:
@@ -58,7 +58,7 @@ markup:
|
||||
extensions:
|
||||
passthrough:
|
||||
delimiters:
|
||||
block: [['\[', '\]'], ['$$', '$$']]
|
||||
block: [['\[', '\]'], ["$$", "$$"]]
|
||||
inline: [['\(', '\)']]
|
||||
enable: true
|
||||
|
||||
@@ -70,9 +70,8 @@ menu:
|
||||
name: Documentation
|
||||
pageRef: /docs
|
||||
weight: 1
|
||||
- identifier: showcase
|
||||
name: Showcase
|
||||
pageRef: /showcase
|
||||
- identifier: versions
|
||||
name: Versions
|
||||
weight: 2
|
||||
- identifier: blog
|
||||
name: Blog
|
||||
@@ -82,15 +81,27 @@ menu:
|
||||
name: About
|
||||
pageRef: /about
|
||||
weight: 4
|
||||
- name: Search
|
||||
- identifier: showcase
|
||||
name: Showcase
|
||||
pageRef: /showcase
|
||||
weight: 5
|
||||
- name: Search
|
||||
weight: 6
|
||||
params:
|
||||
type: search
|
||||
- name: GitHub
|
||||
weight: 6
|
||||
weight: 7
|
||||
url: "https://github.com/imfing/hextra"
|
||||
params:
|
||||
icon: github
|
||||
- identifier: development
|
||||
name: Development ↗
|
||||
url: https://imfing.github.io/hextra/versions/latest/
|
||||
parent: versions
|
||||
- identifier: v0.9
|
||||
name: v0.9 ↗
|
||||
url: https://imfing.github.io/hextra/versions/v0.9/
|
||||
parent: versions
|
||||
|
||||
sidebar:
|
||||
- identifier: more
|
||||
@@ -163,7 +174,7 @@ params:
|
||||
# date | lastmod | publishDate | title | weight
|
||||
sortBy: date
|
||||
sortOrder: desc # or "asc"
|
||||
|
||||
|
||||
article:
|
||||
displayPagination: true
|
||||
|
||||
|
@@ -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",
|
||||
|
@@ -4,3 +4,5 @@ blog: "وبلاگ"
|
||||
about: "درباره ما"
|
||||
more: "بیشتر"
|
||||
hugoDocs: "مستندات هیوگو ↖"
|
||||
versions: "نسخهها"
|
||||
development: "آخرین نسخه توسعهای"
|
||||
|
@@ -3,4 +3,6 @@ showcase: "展示"
|
||||
blog: "ブログ"
|
||||
about: "概要"
|
||||
more: "もっと見る"
|
||||
hugoDocs: "Hugo ドキュメント ↗"
|
||||
hugoDocs: "Hugo ドキュメント ↗"
|
||||
versions: "バージョン"
|
||||
development: "最新の開発版"
|
||||
|
@@ -4,3 +4,5 @@ blog: "博客"
|
||||
about: "关于"
|
||||
more: "更多"
|
||||
hugoDocs: "Hugo 文档 ↗"
|
||||
versions: "版本"
|
||||
development: "最新开发版本"
|
||||
|
Reference in New Issue
Block a user