From c73d64b0a7786ffb4e7f7709bedf81fbbc2046c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Tue, 12 Jul 2022 00:24:57 +0200 Subject: [PATCH] theme: move essential call to page-meta to prominent location #308 --- layouts/404.html | 1 + layouts/partials/_main.html | 1 + layouts/partials/_taxonomy.html | 1 + layouts/partials/meta.html | 1 - 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/404.html b/layouts/404.html index 8e0cf10804..244e68a5e7 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,3 +1,4 @@ +{{- partial "page-meta.hugo" . }} diff --git a/layouts/partials/_main.html b/layouts/partials/_main.html index ef5c435cc5..f2e77b6944 100644 --- a/layouts/partials/_main.html +++ b/layouts/partials/_main.html @@ -1,3 +1,4 @@ +{{- partial "page-meta.hugo" . }} {{- partial "output-partial.html" (dict "base" "header" "page" . "parameter" .) }} {{- if not .File }} {{- partial "output-partial.html" (dict "base" "body" "page" . "parameter" (dict "page" . "content" (partial "initial.html" .))) }} diff --git a/layouts/partials/_taxonomy.html b/layouts/partials/_taxonomy.html index 7bdf074b7f..85a9ade413 100644 --- a/layouts/partials/_taxonomy.html +++ b/layouts/partials/_taxonomy.html @@ -1,3 +1,4 @@ +{{- partial "page-meta.hugo" . }} {{- partial "header.html" . }}
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index 4f580da0f3..83d1fdee7b 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -9,7 +9,6 @@ {{- $ver = replaceRE "\\s*(\\S*)" "${1}" $ver }} {{- $ver := printf "" "Relearn" $ver }} {{ $ver | safeHTML }} - {{- partial "page-meta.hugo" . }} {{- if not (and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }} {{- end }}