Add menu
This commit is contained in:
parent
334e025e1d
commit
ff03bb2464
6 changed files with 40 additions and 3 deletions
|
@ -24,6 +24,8 @@ module:
|
||||||
- path: github.com/hugomods/icons/vendors/lucide
|
- path: github.com/hugomods/icons/vendors/lucide
|
||||||
|
|
||||||
params:
|
params:
|
||||||
|
BookMenuBundle: 'menu'
|
||||||
|
BookTheme: 'auto'
|
||||||
BookToC: true
|
BookToC: true
|
||||||
BookLogo: '/Images/Slimes/sunflower-1.png'
|
BookLogo: '/Images/Slimes/sunflower-1.png'
|
||||||
BookFavicon: '/Images/Slimes/sunflower-1.png'
|
BookFavicon: '/Images/Slimes/sunflower-1.png'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Welcome to the Edikoyo Wiki!
|
Welcome to the Edikoyo Wiki!
|
||||||
|
|
||||||
The wiki is currently under construction so many section will be empty as information is getting added
|
The wiki is currently under construction so many sections will be empty as information is getting added
|
||||||
|
|
||||||
{{< ico lucide building >}}
|
{{< ico lucide building >}}
|
||||||
|
|
10
content/menu/_index.md
Normal file
10
content/menu/_index.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
headless: true
|
||||||
|
---
|
||||||
|
|
||||||
|
**Documents**
|
||||||
|
- [{{< ico lucide cat>}} Animals]({{< relref "/docs/animals" >}})
|
||||||
|
- [{{< ico lucide trees >}} Countries]({{< relref "/docs/countries" >}})
|
||||||
|
- [{{< ico lucide languages >}} Languages]({{< relref "/docs/languages" >}})
|
||||||
|
- [{{< ico lucide tree-pine >}} Plants]({{< relref "/docs/plants" >}})
|
||||||
|
<br/>
|
25
layouts/partials/docs/menu.html
Normal file
25
layouts/partials/docs/menu.html
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
<nav>
|
||||||
|
{{ partial "docs/brand" . }}
|
||||||
|
{{ partial "docs/search" . }}
|
||||||
|
{{ partial "docs/languages" . }}
|
||||||
|
|
||||||
|
{{ partial "docs/inject/menu-before" . }}
|
||||||
|
{{ partial "docs/menu-hugo" .Site.Menus.before }}
|
||||||
|
|
||||||
|
{{ if .Page.Params.BookMenuBundle }}
|
||||||
|
{{ partial "docs/menu-page-bundle" . }}
|
||||||
|
{{ else if .Site.Params.BookMenuBundle }}
|
||||||
|
{{ partial "docs/menu-bundle" . }}
|
||||||
|
{{ else }}
|
||||||
|
{{ partial "docs/menu-filetree" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ partial "docs/menu-hugo" .Site.Menus.after }}
|
||||||
|
{{ 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 }}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"Target":"book.min.309b7ed028807cdb68d8d61e26d609f48369c098dbf5e4d8c0dcf4cdf49feafc.css","MediaType":"text/css","Data":{"Integrity":"sha256-MJt+0CiAfNto2NYeJtYJ9INpwJjb9eTYwNz0zfSf6vw="}}
|
{"Target":"book.min.914c7cb38980cba0809b002bf347d49f0824cfba59dbe2433361cb99cc0fcf63.css","MediaType":"text/css","Data":{"Integrity":"sha256-kUx8s4mAy6CAmwAr80fUnwgkz7pZ2+JDM2HLmcwPz2M="}}
|
Loading…
Reference in a new issue