From e74715d745c662700dbe395a7741429d0ae168e3 Mon Sep 17 00:00:00 2001 From: aethrvmn Date: Mon, 18 Nov 2024 00:43:03 +0100 Subject: [PATCH] Added hide/show for menu --- layouts/partials/docs/inject/toc-before.html | 1 + layouts/partials/docs/menu.html | 56 +++++++++++++++++--- 2 files changed, 50 insertions(+), 7 deletions(-) diff --git a/layouts/partials/docs/inject/toc-before.html b/layouts/partials/docs/inject/toc-before.html index e69de29..4b0e9c7 100644 --- a/layouts/partials/docs/inject/toc-before.html +++ b/layouts/partials/docs/inject/toc-before.html @@ -0,0 +1 @@ +

TableOfContents

diff --git a/layouts/partials/docs/menu.html b/layouts/partials/docs/menu.html index 2c299d1..f20be9b 100644 --- a/layouts/partials/docs/menu.html +++ b/layouts/partials/docs/menu.html @@ -4,25 +4,67 @@
{{ partial "docs/inject/menu-before" . }} - {{ partial "docs/menu-hugo" .Site.Menus.before }} +

{{ partial "docs/menu-hugo" .Site.Menus.before }}

- {{ if .Site.Params.BookMenuBundle }} - {{ partial "docs/menu-bundle" . }} - {{ else }} - {{ partial "docs/menu-filetree" . }} - {{ end }} + + + + +
+
{{ partial "docs/inject/menu-after" . }} - {{ partial "docs/menu-hugo" .Site.Menus.after }} + {{ partial "docs/menu-hugo" .Site.Menus.contact }}
{{ $script := resources.Get "menu-reset.js" | resources.Minify }} + {{ with $script.Content }} + + {{ end }}