From 494366422b53caddb38d4da8855aa76ff7ad1006 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 14 Dec 2025 10:37:29 +0100 Subject: [PATCH] WIP:layout:menu --- layouts/_partials/menu.html | 62 ++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 32 deletions(-) diff --git a/layouts/_partials/menu.html b/layouts/_partials/menu.html index a85b2941..e2bbc52b 100644 --- a/layouts/_partials/menu.html +++ b/layouts/_partials/menu.html @@ -23,6 +23,36 @@ {{- partial "inline/menu/tree.html" (dict "pages" $page.Site.Sections "current" $page) }} {{- end }} + {{- define "_partials/inline/menu/tree.html" }} + {{- $current := .current -}} + {{- $pages := .pages -}} + {{- $isCurrent := eq . $current -}} + {{- $isAncestor := $current.IsDescendant . -}} + + {{- end }}