2016-03-17 12:01:39 +01:00
<!DOCTYPE html>
2022-11-17 22:12:18 +01:00
{{- $format := partial "get-format.hugo" . }}
{{- $outputFormat := partial "output-format.hugo" (dict "page" . "format" $format) }}
{{- $basename := "index" }}
{{- if eq $outputFormat "searchpage" }}
2022-11-19 13:40:26 +01:00
{{- $basename = partial "BaseName.hugo" $format.RelPermalink }}
2022-11-17 22:12:18 +01:00
{{- end }}
2023-11-12 23:44:36 +01:00
{{- if eq . .Site.Sites.First.Home }}
2024-04-07 21:54:27 +02:00
{{- $hugoVersion := "0.121.0" }}
2023-11-26 21:19:24 +01:00
{{- if lt hugo.Version $hugoVersion }}
{{- errorf "The Relearn theme requires Hugo %s or later" $hugoVersion }}
2023-11-12 23:44:36 +01:00
{{- end }}
{{- end }}
2024-04-24 22:40:39 +02:00
{{- 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 }}
2024-05-28 22:34:58 +02:00
< html lang = "{{ .Page.Language.LanguageCode }}" dir = "{{ .Page.Language.LanguageDirection | default (T " Reading-direction " ) | default " ltr " } } " itemscope itemtype = "http://schema.org/Article" >
2016-03-17 12:01:39 +01:00
< head >
2021-09-12 00:40:03 +02:00
{{- partial "meta.html" . }}
2022-11-02 00:14:19 +01:00
{{- $page := . }}
2022-07-07 21:42:45 +02:00
{{- $link := "< link href = \"%s\" rel = \"%s\" type = \"%s\" title = \"%s\" > " }}
2024-04-07 22:13:52 +02:00
{{- $title := partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true "format" $format "outputFormat" $outputFormat) }}
2022-11-06 01:37:33 +01:00
< title > {{ $title }}< / title >
2018-02-19 16:09:45 +00:00
2023-01-25 12:41:02 +01:00
{{- if .IsTranslated -}}
{{- range $index, $trans := .AllTranslations }}
{{- if eq $index 0 }}
< link href = "{{ partial " relLangPrettyUglyURL . hugo " ( dict " to " . " abs " true " basename " $ basename ) } } " rel = "alternate" hreflang = "x-default" >
{{- end }}
2023-11-28 21:31:35 +01:00
< link href = "{{ partial " relLangPrettyUglyURL . hugo " ( dict " to " . " abs " true " basename " $ basename ) } } " rel = "alternate" hreflang = "{{ .Language.LanguageCode }}" >
2023-01-25 12:41:02 +01:00
{{- end }}
{{- end }}
2024-07-21 23:40:57 +02:00
{{- if not (and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }}
2022-02-06 13:51:54 +01:00
{{- else }}
2023-01-25 12:41:02 +01:00
{{- range .AlternativeOutputFormats }}
{{- if eq .Rel "canonical" }}
2022-11-17 22:12:18 +01:00
{{ (printf $link (partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true "basename" $basename)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }}
2023-01-25 12:41:02 +01:00
{{- else if eq $outputFormat "searchpage" }}
2024-02-10 23:22:35 +01:00
{{- else if eq .Name "searchpage" }}
2024-04-26 23:35:56 +02:00
{{- else if ne .Name "search" }}
2022-11-11 13:44:23 +01:00
{{ (printf $link (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }}
2022-02-06 13:51:54 +01:00
{{- end }}
2023-01-25 12:41:02 +01:00
{{- end }}
2020-03-09 15:50:24 +00:00
{{- end }}
2023-01-25 12:41:02 +01:00
2022-11-12 15:16:53 +01:00
{{- partialCached "favicon.html" . }}
2024-03-16 18:40:06 +01:00
{{- partial "stylesheet.html" (dict "page" . "outputFormat" $outputFormat) }}
2023-10-12 21:11:51 +02:00
{{- partial "dependencies.html" (dict "page" . "location" "header" "outputFormat" $outputFormat) }}
2021-09-12 00:40:03 +02:00
{{- partial "custom-header.html" . }}
2016-03-17 12:01:39 +01:00
< / head >
2023-06-22 18:42:43 +02:00
< body class = "mobile-support {{ $outputFormat }}{{- if .Site.Params.disableInlineCopyToClipBoard }} disableInlineCopyToClipboard{{ end }}{{- if .Site.Params.disableHoverBlockCopyToClipBoard }} disableHoverBlockCopyToClipBoard{{ end }}" data-url = "{{ partial " relLangPrettyUglyURL . hugo " ( dict " to " . ) } } " >
2023-09-23 10:18:31 +02:00
< div id = "R-body" class = "default-animation" >
< div id = "R-body-overlay" > < / div >
< nav id = "R-topbar" >
2023-09-18 20:24:49 +02:00
< div class = "topbar-wrapper" >
2023-09-13 23:10:41 +02:00
< div class = "topbar-sidebar-divider" > < / div >
2023-09-18 20:24:49 +02:00
< div class = "topbar-area topbar-area-start" data-area = "start" >
{{- partial "topbar/area/start.html" . }}
2023-09-13 23:10:41 +02:00
< / div >
{{- $showBreadcrumb := (and (not .Params.disableBreadcrumb) (not .Site.Params.disableBreadcrumb)) }}
{{- if $showBreadcrumb }}
2023-09-21 00:26:42 +02:00
< ol class = "topbar-breadcrumbs breadcrumbs highlightable" itemscope itemtype = "http://schema.org/BreadcrumbList" >
2023-09-24 00:27:39 +02:00
{{- partial "breadcrumbs.html" (dict "page" .) }}
2023-09-13 23:10:41 +02:00
< / ol >
{{- else }}
< span class = "topbar-breadcrumbs highlightable" >
{{ .Title }}
< / span >
{{- end }}
2023-09-18 20:24:49 +02:00
< div class = "topbar-area topbar-area-end" data-area = "end" >
{{- partial "topbar/area/end.html" . }}
2023-09-12 23:18:49 +02:00
< / div >
2022-02-27 10:27:12 +01:00
< / div >
2022-02-28 01:19:32 +01:00
< / nav >
2022-11-13 11:31:46 +01:00
{{- $hook := "styleclass" }}
2023-09-23 10:18:31 +02:00
< div id = "R-main-overlay" > < / div >
< main id = "R-body-inner" class = "highlightable {{ partialCached " archetype . hugo " ( dict " hook " $ hook " page " . " parameter " . " outputFormat " $ outputFormat ) . RelPermalink $ outputFormat $ hook } } " tabindex = "-1" >
2023-09-24 00:27:39 +02:00
< div class = "flex-block-wrapper" >