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
+2 -2
View File
@@ -6,11 +6,11 @@
{{ end }}
{{ partial "docs/inject/menu-before" . }}
{{ partial "docs/menu-hugo" .Site.Menus.before }}
{{ partial "docs/menu-hugo" (dict "Page" .Page "Menu" .Site.Menus.before) }}
{{ partial "docs/menu-filetree" . }}
{{ partial "docs/menu-hugo" .Site.Menus.after }}
{{ partial "docs/menu-hugo" (dict "Page" .Page "Menu" .Site.Menus.after) }}
{{ partial "docs/inject/menu-after" . }}
</nav>