{{- $outputFormat := partial "output-format.hugo" . }} {{- if eq . .Site.Sites.First.Home }} {{- $hugoVersion := "0.126.0" }} {{- if lt hugo.Version $hugoVersion }} {{- errorf "The Relearn theme requires Hugo %s or later" $hugoVersion }} {{- end }} {{- end }} {{- if .Site.Params.description }} {{- warnf "UNSUPPORTED usage of 'params.description' config parameter found, move it to the frontmatter of your home page; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#600" }} {{- end }} {{- partial "meta.html" . }} {{- $page := . }} {{- $link := "" }} {{- $title := partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true) }} {{ $title }} {{- if .IsTranslated -}} {{- range $index, $trans := .AllTranslations }} {{- if eq $index 0 }} {{- end }} {{- end }} {{- end }} {{- if not (and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }} {{- else }} {{- range .AlternativeOutputFormats }} {{- if eq .Rel "canonical" }} {{ (printf $link (partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }} {{- else if not (partial "pageHelper/isRelearnSpecialPage.html" $page) }} {{ (printf $link (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }} {{- end }} {{- end }} {{- end }} {{- partialCached "favicon.html" . }} {{- partial "stylesheet.html" . }} {{- partial "dependencies.html" (dict "page" . "location" "header") }} {{- partial "custom-header.html" . }}
{{- $hook := "styleclass" }}