feat: add support for non-docs sections
This commit is contained in:
parent
acc6f89d18
commit
00220b0d86
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue