Improve hugo menu handling, add active class to current menu entity, name now takes over page title

This commit is contained in:
Alex Shpak
2025-09-21 22:22:19 +02:00
parent d08e17457f
commit 79001ff6f3
7 changed files with 49 additions and 28 deletions
+4 -5
View File
@@ -40,18 +40,17 @@ languages:
menu:
home:
- name: "Documentation"
url: "/docs/example/"
pageRef: "/docs/example/"
weight: 1
- name: "Introduction"
url: "/docs/example/"
- pageRef: "/docs/example/"
weight: 10
parent: "Documentation"
- name: "Shortcodes"
url: "/docs/shortcodes/badges/"
pageRef: "/docs/shortcodes/badges/"
weight: 20
parent: "Documentation"
- name: "Showcases"
url: "/showcases/"
pageRef: "/showcases/"
weight: 2
- name: "Github"
url: "https://github.com/alex-shpak/hugo-book/"