2022-02-06 13:51:54 +01:00
|
|
|
|
|
|
|
<meta charset="utf-8">
|
2022-02-28 01:19:32 +01:00
|
|
|
{{- $c:=""}}{{/* to avoid that user swiping to the left leaves a gap on the right side, we set minimum-scale, even if not advised to */}}
|
|
|
|
<meta name="viewport" content="height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
2022-11-13 12:16:34 +01:00
|
|
|
{{- if (ne .Site.Params.disableGeneratorVersion true) }}
|
|
|
|
{{- $gen := hugo.Generator }}
|
|
|
|
{{- $gen = replaceRE "\\s*/>$" ">" $gen }}
|
2022-07-07 21:42:45 +02:00
|
|
|
{{ $gen | safeHTML }}
|
2022-11-13 12:16:34 +01:00
|
|
|
{{- $ver := partial "version.txt" }}
|
|
|
|
{{- $ver := printf "<meta name=\"generator\" content=\"%s %s\">" "Relearn" $ver }}
|
2022-07-07 21:42:45 +02:00
|
|
|
{{ $ver | safeHTML }}
|
2022-11-13 12:16:34 +01:00
|
|
|
{{- end }}
|
2022-02-06 13:51:54 +01:00
|
|
|
{{- if not (and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }}
|
2021-09-09 22:26:24 +02:00
|
|
|
<meta name="robots" content="noindex, nofollow, noarchive, noimageindex">
|
2021-09-23 22:38:54 +02:00
|
|
|
{{- end }}
|
2021-09-09 22:26:24 +02:00
|
|
|
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
|
2023-10-20 20:08:37 +02:00
|
|
|
{{- $authorName := partialCached "authorname.hugo" . }}
|
2023-10-20 19:50:14 +02:00
|
|
|
<meta name="author" content="{{ $authorName }}">
|
2023-10-11 18:01:58 +02:00
|
|
|
{{- partial "twitter_cards.html" . }}
|
|
|
|
{{- partial "opengraph.html" . }}
|