From f32e40c375ce250b1cdfe2a1755fd4b27486a5ac Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 17 May 2023 10:43:39 +0200 Subject: [PATCH] Ondersteuning voor meerdere submenu's dmv counter en eigen id --- themes/nluug/layouts/partials/header.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/themes/nluug/layouts/partials/header.html b/themes/nluug/layouts/partials/header.html index db9612d..4c95add 100644 --- a/themes/nluug/layouts/partials/header.html +++ b/themes/nluug/layouts/partials/header.html @@ -1,3 +1,6 @@ +{{ $.Scratch.Set "counter" 0 }} +{{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }} +
@@ -12,9 +15,10 @@ {{ $currentPage := . }} {{ range .Site.Menus.main }} {{ if .Children }} + {{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }}
  • - -