fix menu
This commit is contained in:
parent
d6a89176ae
commit
a06f97e7e5
4 changed files with 38 additions and 15 deletions
|
@ -1,3 +1,20 @@
|
||||||
/* You can add custom styles here. */
|
/* You can add custom styles here. */
|
||||||
|
|
||||||
// @import "plugins/numbered";
|
// @import "plugins/numbered";
|
||||||
|
.book-menu-content nav {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 99%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.book-brand {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.book-search {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.book-menu-mid {
|
||||||
|
margin-top: -1rem;
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
|
|
@ -49,7 +49,9 @@ enableGitInfo = false
|
||||||
|
|
||||||
# (Optional, default favicon.png) Set the path to a favicon file.
|
# (Optional, default favicon.png) Set the path to a favicon file.
|
||||||
# If the favicon is /static/favicon.png then the path would be favicon.png
|
# If the favicon is /static/favicon.png then the path would be favicon.png
|
||||||
BookFavicon = 'favicon.ico'
|
BookFavicon = ''
|
||||||
|
|
||||||
|
BookLogo = ''
|
||||||
|
|
||||||
# (Optional, default docs) Specify root page to render child pages as menu.
|
# (Optional, default docs) Specify root page to render child pages as menu.
|
||||||
# Page is resoled by .GetPage function: https://gohugo.io/functions/getpage/
|
# Page is resoled by .GetPage function: https://gohugo.io/functions/getpage/
|
||||||
|
|
|
@ -5,4 +5,5 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<span>{{ .Site.Title }}</span>
|
<span>{{ .Site.Title }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
<hr>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
|
@ -1,21 +1,24 @@
|
||||||
<nav>
|
<nav>
|
||||||
{{ partial "docs/brand" . }}
|
{{ partial "docs/brand" . }}
|
||||||
{{ partial "docs/search" . }}
|
{{ partial "docs/search" . }}
|
||||||
|
|
||||||
|
<div class="book-menu-top">
|
||||||
|
{{ partial "docs/inject/menu-before" . }}
|
||||||
|
{{ partial "docs/menu-hugo" .Site.Menus.before }}
|
||||||
|
</div>
|
||||||
|
|
||||||
{{ partial "docs/inject/menu-before" . }}
|
<div class="book-menu-mid">
|
||||||
{{ partial "docs/menu-hugo" .Site.Menus.before }}
|
{{ if .Site.Params.BookMenuBundle }}
|
||||||
|
|
||||||
{{ if .Site.Params.BookMenuBundle }}
|
|
||||||
{{ partial "docs/menu-bundle" . }}
|
{{ partial "docs/menu-bundle" . }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ partial "docs/menu-filetree" . }}
|
{{ partial "docs/menu-filetree" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div style="bottom:0; position:fixed;">
|
<div class="book-menu-bot">
|
||||||
{{ partial "docs/menu-hugo" .Site.Menus.after }}
|
{{ partial "docs/inject/menu-after" . }}
|
||||||
{{ partial "docs/inject/menu-after" . }}
|
{{ partial "docs/menu-hugo" .Site.Menus.after }}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<!-- Restore menu position as soon as possible to avoid flickering -->
|
<!-- Restore menu position as soon as possible to avoid flickering -->
|
||||||
|
|
Loading…
Reference in a new issue