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

github.com/onweru/compose.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorweru <fromweru@gmail.com>2022-02-01 01:12:44 +0300
committerweru <fromweru@gmail.com>2022-02-01 01:13:31 +0300
commitdafdedb49e0f08fddd17794d9377dda3f92e5294 (patch)
treee03f656b0977733db87bbfd5e1019c2ded005e62
parent58ca403bf22e5b7c9600273088c15fd621780731 (diff)
allow multiple docs directories #72, #73
Signed-off-by: weru <fromweru@gmail.com>
-rw-r--r--layouts/_default/baseof.html11
1 files changed, 8 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 7360266..0b16789 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -8,10 +8,15 @@
{{- partial "nav" . }}
</header>
<div class="main wrap pt-4">
- {{- if or (eq .Section "docs") (and (ne site.Params.uniqueHomepage true) .IsHome) }}
- {{- partial "document" . }}
+ {{ $docSections := site.Params.docSections }}
+ {{- with $docSections }}{{- else }}
+ {{- $docSections = "docs" }}
+ {{- end }}
+ {{- if or (in $docSections .Section) (and (ne site.Params.uniqueHomepage true) .IsHome) }}
+ {{- partial "document" . }}
{{- else }}
- {{- block "main" . }}{{ end }}
+ <h1>False {{ .Section }}</h1>
+ {{- block "main" . }}{{ end }}
{{- end -}}
</div>
{{- partialCached "footer" . -}}