theme: move essential call to page-meta to prominent location #308

This commit is contained in:
Sören Weber 2022-07-12 00:24:57 +02:00
parent 7f3fbe1753
commit c73d64b0a7
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
4 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,4 @@
{{- partial "page-meta.hugo" . }}
<!DOCTYPE html>
<html lang="{{ .Page.Language | default "en" }}">
<head>

View file

@ -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" .))) }}

View file

@ -1,3 +1,4 @@
{{- partial "page-meta.hugo" . }}
{{- partial "header.html" . }}
<article>

View file

@ -9,7 +9,6 @@
{{- $ver = replaceRE "\\s*(\\S*)" "${1}" $ver }}
{{- $ver := printf "<meta name=\"generator\" content=\"%s %s\">" "Relearn" $ver }}
{{ $ver | safeHTML }}
{{- partial "page-meta.hugo" . }}
{{- if not (and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }}
<meta name="robots" content="noindex, nofollow, noarchive, noimageindex">
{{- end }}