aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/menu.html
blob: a0d3c450ca3d7add81849bb6439364c8d030a2bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<nav>
{{ partial "docs/brand" . }}
{{ partial "docs/search" . }}
{{ partial "docs/inject/menu-before" . }}

{{ if .Site.Params.BookMenuBundle }}
  {{ partial "docs/menu-bundle" . }}
{{ else }}
  {{ partial "docs/menu-filetree" . }}
{{ end }}

{{ 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 }}