2016-03-17 12:01:39 +01:00
<!DOCTYPE html>
2024-08-29 00:32:21 +02:00
{{- block "storeOutputFormat" . }}{{ end }}
2024-09-09 08:16:55 +02:00
{{- if .IsHome }}
2024-08-27 00:10:01 +02:00
{{- $hugoVersion := "0.126.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 }}
2024-09-18 20:47:07 +02:00
{{- 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/releasenotes/6/#6-0-0" }}
2024-04-24 22:40:39 +02:00
{{- 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" . }}
2024-08-29 12:28:34 +02:00
{{- $title := partial "title.gotmpl" (dict "page" . "fullyQualified" true "reverse" true) }}
2022-11-06 01:37:33 +01:00
< title > {{ $title }}< / title >
2018-02-19 16:09:45 +00:00
2024-08-29 00:32:21 +02:00
{{- /* multilingual stuff */}}
2023-01-25 12:41:02 +01:00
{{- if .IsTranslated -}}
{{- range $index, $trans := .AllTranslations }}
{{- if eq $index 0 }}
2024-08-29 12:28:34 +02:00
< link href = "{{ partial " permalink . gotmpl " ( dict " to " . " abs " true ) } } " rel = "alternate" hreflang = "x-default" >
2023-01-25 12:41:02 +01:00
{{- end }}
2024-08-29 12:28:34 +02:00
< link href = "{{ partial " permalink . gotmpl " ( dict " to " . " abs " true ) } } " rel = "alternate" hreflang = "{{ .Language.LanguageCode }}" >
2023-01-25 12:41:02 +01:00
{{- end }}
{{- end }}
2024-08-29 00:32:21 +02:00
{{- /* output formats */}}
2024-09-08 00:09:35 +02:00
{{- $page := . }}
{{- $link := "< link href = \"%s\" rel = \"%s\" type = \"%s\" title = \"%s\" > " }}
{{- range .AlternativeOutputFormats }}
{{- if eq .Rel "canonical" }}
2024-08-29 12:28:34 +02:00
{{ (printf $link (partial "permalink.gotmpl" (dict "to" . "abs" true)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }}
2024-09-08 00:09:35 +02:00
{{- else if not (partial "_relearn/pageIsSpecial.gotmpl" $page) }}
2024-08-29 12:28:34 +02:00
{{ (printf $link (partial "permalink.gotmpl" (dict "to" .)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }}
2023-01-25 12:41:02 +01:00
{{- end }}
2020-03-09 15:50:24 +00:00
{{- end }}
2022-11-12 15:16:53 +01:00
{{- partialCached "favicon.html" . }}
2024-08-27 09:13:06 +02:00
{{- partial "stylesheet.html" . }}
2024-09-24 15:56:12 +02:00
{{- partial "dependencies.gotmpl" (dict "page" . "location" "header") }}
2021-09-12 00:40:03 +02:00
{{- partial "custom-header.html" . }}
2016-03-17 12:01:39 +01:00
< / head >
2024-08-29 12:28:34 +02: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 " permalink . gotmpl " ( 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" >
2024-08-29 12:28:34 +02:00
{{ partial "title.gotmpl" (dict "page" . "linkTitle" true) }}
2023-09-13 23:10:41 +02:00
< / 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 >
2023-09-23 10:18:31 +02:00
< div id = "R-main-overlay" > < / div >
2024-08-29 00:32:21 +02: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 }}
2024-09-11 20:22:53 +02:00
{{- $assetBusting := partialCached "assetbusting.gotmpl" . }}
2024-08-29 00:32:21 +02:00
< script src = "{{" js / clipboard . min . js " | relURL } } { { $ assetBusting } } " defer > < / script >
< script src = "{{" js / perfect-scrollbar . min . js " | relURL } } { { $ assetBusting } } " defer > < / script >
2024-09-24 15:56:12 +02:00
{{- partial "dependencies.gotmpl" (dict "page" . "location" "footer") }}
2024-08-29 00:32:21 +02:00
< script src = "{{" js / theme . js " | relURL } } { { $ assetBusting } } " defer > < / script >
{{- partial "custom-footer.html" . }}
< / body >
< / html >