keimena/layouts/partials/docs/menu.html
2024-11-10 21:32:46 +01:00

28 lines
745 B
HTML

<nav>
{{ partial "docs/brand" . }}
{{ partial "docs/search" . }}
<div class="book-menu-top">
{{ partial "docs/inject/menu-before" . }}
{{ partial "docs/menu-hugo" .Site.Menus.before }}
</div>
<div class="book-menu-mid">
{{ if .Site.Params.BookMenuBundle }}
{{ partial "docs/menu-bundle" . }}
{{ else }}
{{ partial "docs/menu-filetree" . }}
{{ end }}
</div>
<div class="book-menu-bot">
{{ partial "docs/inject/menu-after" . }}
{{ partial "docs/menu-hugo" .Site.Menus.after }}
</div>
</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 }}