hugo-book-theme/layouts/partials/docs/menu.html

26 lines
677 B
HTML
Raw Permalink Normal View History

<nav>
2019-01-24 23:30:31 +01:00
{{ partial "docs/brand" . }}
2019-07-15 18:25:21 +02:00
{{ partial "docs/search" . }}
{{ if .Site.IsMultiLingual }}
{{ partial "docs/languages" . }}
{{ end }}
2020-02-12 22:12:41 +01:00
2019-01-24 23:30:31 +01:00
{{ partial "docs/inject/menu-before" . }}
2020-02-12 22:12:41 +01:00
{{ partial "docs/menu-hugo" .Site.Menus.before }}
2019-01-24 23:30:31 +01:00
{{ if .Site.Params.BookMenuBundle }}
{{ partial "docs/menu-bundle" . }}
2019-01-24 23:30:31 +01:00
{{ else }}
{{ partial "docs/menu-filetree" . }}
2019-01-24 23:30:31 +01:00
{{ end }}
2020-02-12 22:12:41 +01:00
{{ partial "docs/menu-hugo" .Site.Menus.after }}
2019-01-24 23:30:31 +01:00
{{ partial "docs/inject/menu-after" . }}
</nav>
2019-07-15 18:25:21 +02:00
<!-- 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 }}