2016-03-17 11:01:39 +00:00
<!DOCTYPE html>
2022-11-17 21:12:18 +00:00
{{- $format := partial "get-format.hugo" . }}
{{- $outputFormat := partial "output-format.hugo" (dict "page" . "format" $format) }}
{{- $basename := "index" }}
{{- if eq $outputFormat "searchpage" }}
2022-11-19 12:40:26 +00:00
{{- $basename = partial "BaseName.hugo" $format.RelPermalink }}
2022-11-17 21:12:18 +00:00
{{- end }}
2023-11-12 22:44:36 +00:00
{{- if eq . .Site.Sites.First.Home }}
2023-11-28 21:12:59 +00:00
{{- $hugoVersion := "0.112.4" }}
2023-11-26 20:19:24 +00:00
{{- if lt hugo.Version $hugoVersion }}
{{- errorf "The Relearn theme requires Hugo %s or later" $hugoVersion }}
2023-11-12 22:44:36 +00:00
{{- end }}
{{- end }}
2023-11-28 20:39:50 +00:00
< html lang = "{{ .Page.Language.LanguageCode | default " en " } } " dir = "{{ .Page.Language.LanguageDirection | default (T " Reading-direction " ) | default " ltr " } } " >
2016-03-17 11:01:39 +00:00
< head >
2021-09-11 22:40:03 +00:00
{{- partial "meta.html" . }}
2022-11-01 23:14:19 +00:00
{{- $page := . }}
2022-07-07 19:42:45 +00:00
{{- $link := "< link href = \"%s\" rel = \"%s\" type = \"%s\" title = \"%s\" > " }}
2023-05-04 20:07:59 +00:00
{{- $title := .Title }}
{{- if eq $outputFormat "searchpage" }}
{{- $title = T "Search" }}
2023-05-20 10:20:58 +00:00
{{- else if eq .Kind "taxonomy" }}
2024-02-14 21:31:30 +00:00
{{- $title = default (default .Data.Plural (i18n .Data.Plural)) .Params.Title }}
2023-05-04 20:07:59 +00:00
{{- else if eq .Kind "term" }}
2023-11-03 21:50:02 +00:00
{{- $taxonomy_page := .Site.GetPage .Data.Plural }}
{{- $title = default (default .Data.Singular (i18n .Data.Singular)) $taxonomy_page.Params.SingularTitle }}
2023-11-28 21:45:38 +00:00
{{- $title = printf "%s %s %s" (default (humanize .Data.Term | strings.Title) .Title) (default "::" .Site.Params.titleSeparator) $title }}
2023-05-04 20:07:59 +00:00
{{- end }}
2023-05-18 12:03:39 +00:00
{{- if and $title .Site.Title (not (eq $title .Site.Title)) }}
2023-05-04 20:07:59 +00:00
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Site.Title }}
2022-11-06 00:37:33 +00:00
{{- end }}
2023-11-04 00:12:48 +00:00
{{- if .Params.menuTitle }}
{{- warnf "%q: DEPRECATED frontmatter 'menutitle' found, use 'linktitle' instead" $page.File.Filename }}
{{- end }}
2022-11-06 00:37:33 +00:00
< title > {{ $title }}< / title >
2018-02-19 16:09:45 +00:00
2023-01-25 11:41:02 +00: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 20:31:35 +00:00
< link href = "{{ partial " relLangPrettyUglyURL . hugo " ( dict " to " . " abs " true " basename " $ basename ) } } " rel = "alternate" hreflang = "{{ .Language.LanguageCode }}" >
2023-01-25 11:41:02 +00:00
{{- end }}
{{- end }}
2022-02-06 12:51:54 +00:00
{{- if not (and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }}
{{- else }}
2023-01-25 11:41:02 +00:00
{{- range .AlternativeOutputFormats }}
{{- if eq .Rel "canonical" }}
2022-11-17 21:12:18 +00:00
{{ (printf $link (partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true "basename" $basename)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }}
2023-01-25 11:41:02 +00:00
{{- else if eq $outputFormat "searchpage" }}
2024-02-10 22:22:35 +00:00
{{- else if eq .Name "searchpage" }}
{{- else if and (ne .Name "json") (ne .Name "search") }}
2022-11-11 12:44:23 +00:00
{{ (printf $link (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }}
2022-02-06 12:51:54 +00:00
{{- end }}
2023-01-25 11:41:02 +00:00
{{- end }}
2020-03-09 15:50:24 +00:00
{{- end }}
2023-01-25 11:41:02 +00:00
2022-02-06 12:51:54 +00:00
{{- if and (ne .Site.Params.disableSeoHiddenPages true) (ne .Site.Params.disableSearchHiddenPages true) }}
2023-01-25 11:41:02 +00:00
{{- range .AlternativeOutputFormats }}
2024-02-10 22:22:35 +00:00
{{- if eq .Name "searchpage" }}
{{- else if eq .Name "json" }}
2022-11-06 00:37:33 +00:00
{{ (printf $link (.Permalink | relURL) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }}
2022-02-06 12:51:54 +00:00
{{- end }}
2023-01-25 11:41:02 +00:00
{{- end }}
2021-11-24 11:03:11 +00:00
{{- end }}
2022-02-06 12:51:54 +00:00
2022-11-12 14:16:53 +00:00
{{- partialCached "favicon.html" . }}
2024-03-16 17:40:06 +00:00
{{- partial "stylesheet.html" (dict "page" . "outputFormat" $outputFormat) }}
2023-10-12 19:11:51 +00:00
{{- partial "dependencies.html" (dict "page" . "location" "header" "outputFormat" $outputFormat) }}
2021-09-11 22:40:03 +00:00
{{- partial "custom-header.html" . }}
2016-03-17 11:01:39 +00:00
< / head >
2023-06-22 16:42:43 +00: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 08:18:31 +00:00
< div id = "R-body" class = "default-animation" >
< div id = "R-body-overlay" > < / div >
< nav id = "R-topbar" >
2023-09-18 18:24:49 +00:00
< div class = "topbar-wrapper" >
2023-09-13 21:10:41 +00:00
< div class = "topbar-sidebar-divider" > < / div >
2023-09-18 18:24:49 +00:00
< div class = "topbar-area topbar-area-start" data-area = "start" >
{{- partial "topbar/area/start.html" . }}
2023-09-13 21:10:41 +00:00
< / div >
{{- $showBreadcrumb := (and (not .Params.disableBreadcrumb) (not .Site.Params.disableBreadcrumb)) }}
{{- if $showBreadcrumb }}
2023-09-20 22:26:42 +00:00
< ol class = "topbar-breadcrumbs breadcrumbs highlightable" itemscope itemtype = "http://schema.org/BreadcrumbList" >
2023-09-23 22:27:39 +00:00
{{- partial "breadcrumbs.html" (dict "page" .) }}
2023-09-13 21:10:41 +00:00
< / ol >
{{- else }}
< span class = "topbar-breadcrumbs highlightable" >
{{ .Title }}
< / span >
{{- end }}
2023-09-18 18:24:49 +00:00
< div class = "topbar-area topbar-area-end" data-area = "end" >
{{- partial "topbar/area/end.html" . }}
2023-09-12 21:18:49 +00:00
< / div >
2022-02-27 09:27:12 +00:00
< / div >
2022-02-28 00:19:32 +00:00
< / nav >
2022-11-13 10:31:46 +00:00
{{- $hook := "styleclass" }}
2023-09-23 08:18:31 +00: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-23 22:27:39 +00:00
< div class = "flex-block-wrapper" >