diff options
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 }} |