diff options
author | Yann Herklotz <git@yannherklotz.com> | 2022-02-23 16:31:44 +0000 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2022-02-23 16:31:44 +0000 |
commit | 893804926a0727a63b1fe8fee996b978392c1e15 (patch) | |
tree | cefd27a0881db0ff085026e318ad06e8120c82db /themes/book/layouts/partials/docs/menu.html | |
parent | c153ba52f049e8f557845376f1bcb3fd6bb25d92 (diff) | |
parent | 6f5f8eb927ba140a7700413332b4d1793e5ccddc (diff) | |
download | vericert-docs-893804926a0727a63b1fe8fee996b978392c1e15.tar.gz vericert-docs-893804926a0727a63b1fe8fee996b978392c1e15.zip |
Merge commit '6f5f8eb927ba140a7700413332b4d1793e5ccddc' as 'themes/book'
Diffstat (limited to 'themes/book/layouts/partials/docs/menu.html')
-rw-r--r-- | themes/book/layouts/partials/docs/menu.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/themes/book/layouts/partials/docs/menu.html b/themes/book/layouts/partials/docs/menu.html new file mode 100644 index 0000000..d7ed940 --- /dev/null +++ b/themes/book/layouts/partials/docs/menu.html @@ -0,0 +1,25 @@ +<nav> +{{ partial "docs/brand" . }} +{{ partial "docs/search" . }} +{{ if .Site.IsMultiLingual }} + {{ partial "docs/languages" . }} +{{ end }} + +{{ partial "docs/inject/menu-before" . }} +{{ partial "docs/menu-hugo" .Site.Menus.before }} + +{{ if .Site.Params.BookMenuBundle }} + {{ partial "docs/menu-bundle" . }} +{{ else }} + {{ partial "docs/menu-filetree" . }} +{{ end }} + +{{ partial "docs/menu-hugo" .Site.Menus.after }} +{{ partial "docs/inject/menu-after" . }} +</nav> + +<!-- Restore menu position as soon as possible to avoid flickering --> +{{ $script := resources.Get "menu-reset.js" | resources.Minify }} +{{ with $script.Content }} + <script>{{ . | safeJS }}</script> +{{ end }} |