Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/h-enk/doks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenk Verlinde <henk@ventizo.com>2022-06-21 13:09:51 +0300
committerHenk Verlinde <henk@ventizo.com>2022-06-21 13:09:51 +0300
commit00220b0d86ca9d15ec3db6e9785d7a1e42a8fe8f (patch)
tree94f077d9f98fd26794c19109c77ebec46b078185
parentacc6f89d1828932e20c2ac6ca1827a1aceae3864 (diff)
feat: add support for non-docs sections
-rw-r--r--config/_default/params.toml3
-rw-r--r--layouts/partials/header/header.html2
2 files changed, 4 insertions, 1 deletions
diff --git a/config/_default/params.toml b/config/_default/params.toml
index e4006f7..5780d96 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -75,6 +75,9 @@ docsRepoSubPath = ""
editPage = false
lastMod = false
+[sections]
+ sectionNav = ["docs", "guides"]
+
[options]
lazySizes = true
clipBoard = true
diff --git a/layouts/partials/header/header.html b/layouts/partials/header/header.html
index 47b3e10..65744ec 100644
--- a/layouts/partials/header/header.html
+++ b/layouts/partials/header/header.html
@@ -15,7 +15,7 @@
{{ .Site.Params.Title }}
</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">
<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>