From 69530b87d13326097873bdb4fbcc007e07a81f0f Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 7 Aug 2023 12:06:16 +0200 Subject: layouts/_default: drop cache on footer To make the list of languages work properly --- layouts/_default/baseof.html | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 layouts/_default/baseof.html 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 := . }} + + + + {{- partial "head" . }} + + + + {{ if or (eq .Section site.Params.blogDir) (eq .Type "search" ) }} + {{- block "main" . }}{{ end }} + {{ else }} +
+ {{ $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 }} +
+ {{- block "main" . }}{{ end }} +
+ {{- end -}} +
+ {{ end }} + {{- partial "scripts/translations" . -}} + {{- partial "footer" . -}} + {{- partialCached "sprites" . -}} + {{- partial "scripts/bundle" . -}} + {{- partial "scripts/other" . -}} + + -- cgit v1.3