2022-02-06 13:51:54 +01:00
< meta charset = "utf-8" >
2024-04-24 23:05:13 +02:00
{{- /* to avoid that user swiping to the left leaves a gap on the right side, we set minimum-scale, even if not advised to */}}
2022-02-28 01:19:32 +01:00
< 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 }}
2024-09-08 17:06:24 +02:00
{{- $title := partial "title.gotmpl" (dict "page" . "linkTitle" true) }}
{{- if not (and $title .RelPermalink (or (ne .Site.Params.disableSeoHiddenPages true) (not (partialCached "_relearn/pageIsHiddenSelfOrAncestor.gotmpl" (dict "page" . "to" .Site.Home) .Path .Site.Home.Path) ) ) ) }}
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 }}
2024-10-24 23:34:37 +02:00
{{- $url := "" }}
2025-01-29 18:03:23 +01:00
{{- $errorlevel := or .Params.link.errorlevel .Site.Params.link.errorlevel }}
2024-10-24 23:34:37 +02:00
{{- if .Params.menuPageRef }}
{{- with site.Home.GetPage (.Params.menuPageRef) }}
{{- $url = partial "permalink.gotmpl" (dict "to" .) }}
{{- else }}
2025-01-29 20:37:08 +01:00
{{- $msg := printf "%q: front matter crosslink '%s' is not a page" .File.Filename .Params.menuPageRef }}
2025-01-29 22:17:39 +01:00
{{- partial "_relearn/urlErrorReport.gotmpl" (dict "url" .Params.menuPageRef "page" . "param" "link" "msg" $msg) }}
2024-10-24 23:34:37 +02:00
{{- end }}
{{- else if .Params.menuUrl }}
{{- $url = .Params.menuUrl }}
2025-01-29 18:03:23 +01:00
{{- $u := urls.Parse $url }}
{{- if $u.IsAbs }}
{{- partialCached "_relearn/urlExists.gotmpl" (dict "url" $url "page" . "type" "menu link") $u.String }}
{{- else }}
2025-01-29 20:37:08 +01:00
{{- $msg := printf "%q: front matter crosslink '%s' given by 'menuURL' is not verified; if it is a page use 'menuPageRef' instead" .File.Filename .Params.menuUrl }}
2025-01-29 22:17:39 +01:00
{{- partial "_relearn/urlErrorReport.gotmpl" (dict "url" .Params.menuUrl "page" . "param" "link" "msg" $msg) }}
2025-01-29 18:03:23 +01:00
{{- end }}
2024-10-24 23:34:37 +02:00
{{- end }}
{{- if $url }}
< meta http-equiv = "refresh" content = "0; url={{ $url }}" >
{{- end }}
2024-08-27 15:35:48 +02:00
< meta name = "description" content = "{{ with trim (or .Description .Summary | plainify | htmlUnescape) " \ n \ r \ t " } } { { . } } { { end } } " >
2024-08-29 12:28:34 +02:00
{{- $authorName := partialCached "_relearn/authorName.gotmpl" . }}
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" . }}
2024-04-24 21:20:11 +02:00
{{- partial "opengraph.html" . }}
{{- partial "schema.html" . }}