aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2023-08-07 12:06:16 +0200
committerDrew DeVault <sir@cmpwn.com>2023-08-07 12:06:43 +0200
commit69530b87d13326097873bdb4fbcc007e07a81f0f (patch)
treece292afdeba8047b309094e2604c563007f0c572
parent6646ac9029defa09d7d4248116e4b20c34ed2265 (diff)
downloadwritefreesoftware.org-69530b87d13326097873bdb4fbcc007e07a81f0f.tar.xz
layouts/_default: drop cache on footer
To make the list of languages work properly
-rw-r--r--layouts/_default/baseof.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..1cc97d4
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,45 @@
+{{ $config := site.Params }}
+{{ $context := . }}
+<!doctype html>
+<html lang="{{ site.Language.Lang }}"{{ with $config.enableDarkMode }} class="dark"{{ end }}{{ with $config.defaultLightingMode }}
+ data-mode="{{ . }}"
+{{ 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>
+ {{ end }}
+ {{- partial "scripts/translations" . -}}
+ {{- partial "footer" . -}}
+ {{- partialCached "sprites" . -}}
+ {{- partial "scripts/bundle" . -}}
+ {{- partial "scripts/other" . -}}
+</body>
+</html>