2020-01-23 23:07:47 +00:00
|
|
|
<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 }}
|
2020-01-23 23:07:47 +00:00
|
|
|
{{ partial "docs/menu-bundle" . }}
|
2019-01-24 22:30:31 +00:00
|
|
|
{{ else }}
|
2020-01-23 23:07:47 +00:00
|
|
|
{{ 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" . }}
|
2019-04-22 17:17:39 +00:00
|
|
|
</nav>
|
|
|
|
|
2019-07-15 16:25:21 +00:00
|
|
|
<!-- Restore menu position as soon as possible to avoid flickering -->
|
2020-02-04 21:24:36 +00:00
|
|
|
{{ $script := resources.Get "menu-reset.js" | resources.Minify }}
|
|
|
|
{{ with $script.Content }}
|
|
|
|
<script>{{ . | safeJS }}</script>
|
|
|
|
{{ end }}
|