From 8feae6fa6e47be799574d38dfe6b74036683e55a Mon Sep 17 00:00:00 2001 From: Henk Verlinde Date: Tue, 6 Jul 2021 08:57:29 +0200 Subject: [PATCH] fix: make id unique collapsible sidebar --- layouts/partials/sidebar/docs-menu.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/sidebar/docs-menu.html b/layouts/partials/sidebar/docs-menu.html index cd3cd07..704b018 100644 --- a/layouts/partials/sidebar/docs-menu.html +++ b/layouts/partials/sidebar/docs-menu.html @@ -5,11 +5,11 @@ {{- $active := or ($currentPage.IsMenuCurrent "docs" .) ($currentPage.HasMenuCurrent "docs" .) -}} {{- $active = or $active (eq $currentPage.Section .Identifier) -}}
  • - {{ if .HasChildren -}} -
    +
      {{ range .Children -}} {{- $active := or ($currentPage.IsMenuCurrent "docs" .) ($currentPage.HasMenuCurrent "docs" .) -}}