From cdf6b3d268e30a5eed8c135ace3aba2642764806 Mon Sep 17 00:00:00 2001
From: doodlebunnyhops <doodlebunnyhops@gmail.com>
Date: Sun, 09 Jul 2023 17:05:53 +0000
Subject: [PATCH] fix: regression #114
---
layouts/_default/baseof.html | 60 ++++++++++++++++++++----------------------------------------
1 files changed, 20 insertions(+), 40 deletions(-)
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 03e111b..81e0bdd 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -11,55 +11,35 @@
<header class="nav_header">
{{- partial "nav" . }}
</header>
- {{ if or (eq .Section site.Params.blogDir) (eq .Type "search" ) }}
+ {{ if or (eq .Section $config.blogDir) (eq .Type "search" ) }}
{{- block "main" . }}{{ end }}
{{ else }}
<div class="main wrap pt-4">
- {{ $docSections := site.Params.docSections }}
+ {{ $docSections := $config.docSections }}
{{- with $docSections }}{{- else }}
{{- $docSections = "docs" }}
{{- end }}
{{ $uniqueHomepage := .IsHome }}
- {{ if site.Params.uniqueHomepage }}
+ {{ if $config.uniqueHomepage }}
{{ if .IsHome }}
{{ $uniqueHomepage = true }}
{{ end }}
- <head>
- {{- partial "head" . }}
- </head>
- <body class="page-{{ .Kind }}" id="pagetop">
- <header class="nav_header">
- {{- partial "nav" . }}
- </header>
- {{ if or (eq .Section site.Params.blogDir) (eq .Type "search" ) }}
- {{- block "main" . }}{{ end }}
{{ else }}
- <div class="main wrap pt-4">
- {{ $docSections := site.Params.docSections }}
- {{- with $docSections }}{{- else }}
- {{- $docSections = "docs" }}
- {{- end }}
- {{ $uniqueHomepage := .IsHome }}
- {{ if site.Params.uniqueHomepage }}
- {{ if .IsHome }}
- {{ $uniqueHomepage = true }}
- {{ end }}
- {{ else }}
- {{ $uniqueHomepage = false }}
- {{ end }}
- {{- if and (in $docSections .Section) (ne $uniqueHomepage true) }}
- {{- partial "document" . }}
- {{- else }}
- <div class="content">
- {{- block "main" . }}{{ end }}
- </div>
- {{- end -}}
- </div>
+ {{ $uniqueHomepage = false }}
{{ end }}
- {{- partial "scripts/translations" . -}}
- {{- partialCached "footer" . -}}
- {{- partialCached "sprites" . -}}
- {{- partial "scripts/bundle" . -}}
- {{- partial "scripts/mermaid" . -}}
- </body>
-</html>
+ {{- if and (in $docSections .Section) (ne $uniqueHomepage true) }}
+ {{- partial "document" . }}
+ {{- else }}
+ <div class="content">
+ {{- block "main" . }}{{ end }}
+ </div>
+ {{- end -}}
+ </div>
+ {{ end }}
+ {{- partial "scripts/translations" . -}}
+ {{- partialCached "footer" . -}}
+ {{- partialCached "sprites" . -}}
+ {{- partial "scripts/bundle" . -}}
+ {{- partial "scripts/mermaid" . -}}
+</body>
+</html>
\ No newline at end of file
--
Gitblit v1.10.0