From 383c4f7a7c64450dcb993ec1db3a63b87b93836d Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 26 Jun 2026 17:31:46 +0200 Subject: fix: submenu as expanding second row inside header glass Replace floating dropdown box with a full-width centered second row that expands the existing frosted header panel on hover/focus. Project pages in the submenu fall back to page title when no menu name is set. Same label fallback applied to mobile overlay children. --- layouts/partials/hamburger-menu.html | 12 +++++- layouts/partials/header.html | 81 ++++++++++++++++++++++-------------- 2 files changed, 60 insertions(+), 33 deletions(-) (limited to 'layouts') diff --git a/layouts/partials/hamburger-menu.html b/layouts/partials/hamburger-menu.html index 248b172..0280ecb 100644 --- a/layouts/partials/hamburger-menu.html +++ b/layouts/partials/hamburger-menu.html @@ -46,13 +46,23 @@
{{ range .Children }} {{ $childExternal := .Params.external }} + {{ $label := "" }} + {{ if $childExternal }} + {{ $label = .Name }} + {{ else if and .Name (i18n .Name) }} + {{ $label = i18n .Name }} + {{ else if .Page }} + {{ $label = .Page.LinkTitle }} + {{ else }} + {{ $label = .Name }} + {{ end }} - {{ if $childExternal }}{{ .Name }}{{ else }}{{ i18n .Name }}{{ end }} + {{ $label }} {{ end }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8ee657c..4ef817e 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,4 +1,4 @@ -
+
). + No ARIA menu roles: CSS-only hover/focus, not an arrow-key menu; + group-focus-within on the header gives keyboard reveal. */}} + + {{ i18n .Name }} + + {{ else }} + + {{ range .Site.Menus.main }} + {{ if .HasChildren }} + + {{ end }} + {{ end }} + {{ partial "hamburger-menu.html" . }}
-- cgit v1.2.3