diff options
| author | aethrvmn <me@aethrvmn.gr> | 2025-08-30 13:17:32 +0000 |
|---|---|---|
| committer | aethrvmn <me@aethrvmn.gr> | 2025-08-30 13:17:32 +0000 |
| commit | 1147a663e70aadb2578cbe601bc723d7cd939c5a (patch) | |
| tree | b5100d2031328be3cfd3e9ae62730436bd573e0f /layouts/partials/docs/menu.html | |
| parent | added .gitignore (diff) | |
added non-content
Diffstat (limited to '')
| -rw-r--r-- | layouts/partials/docs/menu.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/layouts/partials/docs/menu.html b/layouts/partials/docs/menu.html new file mode 100644 index 0000000..4d6f6b8 --- /dev/null +++ b/layouts/partials/docs/menu.html @@ -0,0 +1,40 @@ +<nav> +{{ partial "docs/brand" . }} +{{ partial "docs/search" . }} +{{ if hugo.IsMultilingual }} + {{ partial "docs/languages" . }} +{{ end }} + +<div class="menu-before"> +{{ partial "docs/inject/menu-before" . }} +{{ partial "docs/menu-hugo" .Site.Menus.before }} +</div> + +<div class="menu-center"> +{{ partial "docs/menu-filetree" . }} +</div> + +<div class="menu-after"> + <div class="left"> + {{ partial "docs/menu-hugo" .Site.Menus.after_left }} + </div> + + <div class="center"> + {{ partial "docs/menu-hugo" .Site.Menus.after_center }} + </div> + + <div class="right"> + {{ partial "docs/menu-hugo" .Site.Menus.after_right }} + </div> +</div> + +<div> +{{ partial "docs/inject/menu-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 }} |
