{{- /* to avoid that user swiping to the left leaves a gap on the right side, we set minimum-scale, even if not advised to */}} {{- if (ne .Site.Params.disableGeneratorVersion true) }} {{- $gen := hugo.Generator }} {{- $gen = replaceRE "\\s*/>$" ">" $gen }} {{ $gen | safeHTML }} {{- $ver := partial "version.txt" }} {{- $ver := printf "" "Relearn" $ver }} {{ $ver | safeHTML }} {{- end }} {{- $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) ) ) ) }} {{- end }} {{- $url := "" }} {{- $errorlevel := or .Params.link.errorlevel .Site.Params.link.errorlevel }} {{- if .Params.menuPageRef }} {{- with site.Home.GetPage (.Params.menuPageRef) }} {{- $url = partial "permalink.gotmpl" (dict "to" .) }} {{- else }} {{- $msg := printf "%q: front matter crosslink '%s' is not a page" .File.Filename .Params.menuPageRef }} {{- partial "_relearn/urlErrorReport.gotmpl" (dict "url" .Params.menuPageRef "page" . "param" "link" "msg" $msg) }} {{- end }} {{- else if .Params.menuUrl }} {{- $url = .Params.menuUrl }} {{- $u := urls.Parse $url }} {{- if $u.IsAbs }} {{- partialCached "_relearn/urlExists.gotmpl" (dict "url" $url "page" . "type" "menu link") $u.String }} {{- else }} {{- $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 }} {{- partial "_relearn/urlErrorReport.gotmpl" (dict "url" .Params.menuUrl "page" . "param" "link" "msg" $msg) }} {{- end }} {{- end }} {{- if $url }} {{- end }} {{- $authorName := partialCached "_relearn/authorName.gotmpl" . }} {{- partial "twitter_cards.html" . }} {{- partial "opengraph.html" . }} {{- partial "schema.html" . }}