From: Kai Moritz Date: Sun, 14 Dec 2025 11:01:31 +0000 (+0100) Subject: WIP:layout:menu X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=6b4c94cd4f670fe67cdbc6a9587222ae60e1822b;p=website WIP:layout:menu --- 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 }}