From 6b4c94cd4f670fe67cdbc6a9587222ae60e1822b Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 14 Dec 2025 12:01:31 +0100 Subject: [PATCH] WIP:layout:menu --- layouts/_partials/menu.html | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/layouts/_partials/menu.html b/layouts/_partials/menu.html index 96314a66..b9b87328 100644 --- a/layouts/_partials/menu.html +++ b/layouts/_partials/menu.html @@ -22,10 +22,9 @@ {{- define "_partials/inline/menu/tree.html" }} {{- $current := .current -}} {{- range .pages }} - {{- $isCurrent := eq . $current -}} - {{- $isAncestor := $current.IsDescendant . -}} -
  • + {{- $isCurrent := eq . $current -}} + {{- $isAncestor := $current.IsDescendant . -}} +
  • - {{ .Title }} - + {{- end }} +
  • {{- end }} {{- end }} -- 2.39.5