2024-08-28 22:32:21 +00:00
{{- partialCached "page-meta.hugo" . .RelPermalink -}}
2016-03-17 11:01:39 +00:00
<!DOCTYPE html>
2024-08-28 22:32:21 +00:00
{{- block "storeOutputFormat" . }}{{ end }}
2023-11-12 22:44:36 +00:00
{{- if eq . .Site.Sites.First.Home }}
2024-08-26 22:10:01 +00:00
{{- $hugoVersion := "0.126.0" }}
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 }}
2024-04-24 20:40:39 +00: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 20:34:58 +00: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 11:01:39 +00:00
< head >
2021-09-11 22:40:03 +00:00
{{- partial "meta.html" . }}
2024-07-21 22:15:38 +00:00
{{- $title := partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true) }}
2022-11-06 00:37:33 +00:00
< title > {{ $title }}< / title >
2018-02-19 16:09:45 +00:00
2024-08-28 22:32:21 +00:00
{{- /* multilingual stuff */}}
2023-01-25 11:41:02 +00:00
{{- if .IsTranslated -}}
{{- range $index, $trans := .AllTranslations }}
{{- if eq $index 0 }}
2024-08-26 21:07:33 +00:00
< link href = "{{ partial " relLangPrettyUglyURL . hugo " ( dict " to " . " abs " true ) } } " rel = "alternate" hreflang = "x-default" >
2023-01-25 11:41:02 +00:00
{{- end }}
2024-08-26 21:07:33 +00:00
< link href = "{{ partial " relLangPrettyUglyURL . hugo " ( dict " to " . " abs " true ) } } " rel = "alternate" hreflang = "{{ .Language.LanguageCode }}" >
2023-01-25 11:41:02 +00:00
{{- end }}
{{- end }}
2024-08-28 22:32:21 +00:00
{{- /* output formats */}}
2024-07-21 21:40:57 +00:00
{{- if not (and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }}
2022-02-06 12:51:54 +00:00
{{- else }}
2024-08-28 22:32:21 +00:00
{{- $page := . }}
{{- $link := "< link href = \"%s\" rel = \"%s\" type = \"%s\" title = \"%s\" > " }}
2023-01-25 11:41:02 +00:00
{{- range .AlternativeOutputFormats }}
{{- if eq .Rel "canonical" }}
2024-08-26 21:07:33 +00:00
{{ (printf $link (partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }}
2024-08-27 13:34:36 +00:00
{{- else if not (partial "pageHelper/isRelearnSpecialPage.html" $page) }}
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 }}
2022-11-12 14:16:53 +00:00
{{- partialCached "favicon.html" . }}
2024-08-27 07:13:06 +00:00
{{- partial "stylesheet.html" . }}
{{- partial "dependencies.html" (dict "page" . "location" "header") }}
2021-09-11 22:40:03 +00:00
{{- partial "custom-header.html" . }}
2016-03-17 11:01:39 +00:00
< / head >
2024-08-28 22:32:21 +00:00
< body class = "mobile-support {{ with .Store.Get " relearnOutputFormat " } } { { . } } { { else } } html { { end } } { { - 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" >
2024-08-28 22:32:21 +00:00
{{ partial "pageHelper/title.hugo" (dict "page" . "linkTitle" true) }}
2023-09-13 21:10:41 +00:00
< / 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 >
2023-09-23 08:18:31 +00:00
< div id = "R-main-overlay" > < / div >
2024-08-28 22:32:21 +00:00
< main id = "R-body-inner" class = "highlightable{{ with or .Type " default " } } { { . } } { { end } } " tabindex = "-1" >
< div class = "flex-block-wrapper" >
{{- block "body" . }}{{ end }}
< / div >
< / main >
{{- partial "custom-comments.html" . }}
< / div >
{{- block "menu" . }}{{ end }}
{{- $assetBusting := partialCached "assetbusting.hugo" . }}
< script src = "{{" js / clipboard . min . js " | relURL } } { { $ assetBusting } } " defer > < / script >
< script src = "{{" js / perfect-scrollbar . min . js " | relURL } } { { $ assetBusting } } " defer > < / script >
{{- partial "dependencies.html" (dict "page" . "location" "footer") }}
< script src = "{{" js / theme . js " | relURL } } { { $ assetBusting } } " defer > < / script >
{{- partial "custom-footer.html" . }}
< / body >
< / html >