From dafdedb49e0f08fddd17794d9377dda3f92e5294 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Mon, 31 Jan 2022 22:13:31 +0000
Subject: [PATCH] allow multiple docs directories #72, #73
---
layouts/_default/baseof.html | 11 ++++++++---
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" . -}}
--
Gitblit v1.10.0