From a06f97e7e598b8cdbc4e7db823f0c03c9b5c286e Mon Sep 17 00:00:00 2001 From: aethrvmn Date: Sun, 10 Nov 2024 21:32:46 +0100 Subject: [PATCH] fix menu --- assets/_custom.scss | 17 +++++++++++++++++ hugo.toml | 4 +++- layouts/partials/docs/brand.html | 1 + layouts/partials/docs/menu.html | 31 +++++++++++++++++-------------- 4 files changed, 38 insertions(+), 15 deletions(-) diff --git a/assets/_custom.scss b/assets/_custom.scss index 0de9ae1..8727953 100644 --- a/assets/_custom.scss +++ b/assets/_custom.scss @@ -1,3 +1,20 @@ /* You can add custom styles here. */ // @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; +} diff --git a/hugo.toml b/hugo.toml index f337eda..7d2498a 100644 --- a/hugo.toml +++ b/hugo.toml @@ -49,7 +49,9 @@ enableGitInfo = false # (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 - BookFavicon = 'favicon.ico' + BookFavicon = '' + + BookLogo = '' # (Optional, default docs) Specify root page to render child pages as menu. # Page is resoled by .GetPage function: https://gohugo.io/functions/getpage/ diff --git a/layouts/partials/docs/brand.html b/layouts/partials/docs/brand.html index f9accb4..4784eb5 100644 --- a/layouts/partials/docs/brand.html +++ b/layouts/partials/docs/brand.html @@ -5,4 +5,5 @@ {{- end -}} {{ .Site.Title }} +
diff --git a/layouts/partials/docs/menu.html b/layouts/partials/docs/menu.html index 67f70eb..2c299d1 100644 --- a/layouts/partials/docs/menu.html +++ b/layouts/partials/docs/menu.html @@ -1,21 +1,24 @@