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