feat: add support for non-docs sections

This commit is contained in:
Henk Verlinde 2022-06-21 12:09:51 +02:00
parent acc6f89d18
commit 00220b0d86
2 changed files with 4 additions and 1 deletions

View File

@ -75,6 +75,9 @@ docsRepoSubPath = ""
editPage = false editPage = false
lastMod = false lastMod = false
[sections]
sectionNav = ["docs", "guides"]
[options] [options]
lazySizes = true lazySizes = true
clipBoard = true clipBoard = true

View File

@ -15,7 +15,7 @@
{{ .Site.Params.Title }} {{ .Site.Params.Title }}
</a> </a>
{{ if eq .Section "docs" -}} {{ if (in .Site.Params.sections.sectionNav .Section) -}}
<button class="btn btn-link order-0 ms-auto d-lg-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasExample" aria-controls="offcanvasExample"> <button class="btn btn-link order-0 ms-auto d-lg-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasExample" aria-controls="offcanvasExample">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle></svg> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle></svg>
</button> </button>