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

23 lines
602 B
HTML
Raw Normal View History

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