2016-03-17 11:01:39 +00:00
<!DOCTYPE html>
2024-08-28 22:32:21 +00:00
{{- block "storeOutputFormat" . }}{{ end }}
2024-09-09 06:16:55 +00:00
{{- if .IsHome }}
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-08-29 10:28:34 +00:00
{{- $title := partial "title.gotmpl" (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-29 10:28:34 +00:00
< link href = "{{ partial " permalink . gotmpl " ( dict " to " . " abs " true ) } } " rel = "alternate" hreflang = "x-default" >
2023-01-25 11:41:02 +00:00
{{- end }}
2024-08-29 10:28:34 +00:00
< link href = "{{ partial " permalink . gotmpl " ( 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-09-07 22:09:35 +00:00
{{- $page := . }}
{{- $link := "< link href = \"%s\" rel = \"%s\" type = \"%s\" title = \"%s\" > " }}
{{- range .AlternativeOutputFormats }}
{{- if eq .Rel "canonical" }}
2024-08-29 10:28:34 +00:00
{{ (printf $link (partial "permalink.gotmpl" (dict "to" . "abs" true)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }}
2024-09-07 22:09:35 +00:00
{{- else if not (partial "_relearn/pageIsSpecial.gotmpl" $page) }}
2024-08-29 10:28:34 +00:00
{{ (printf $link (partial "permalink.gotmpl" (dict "to" .)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }}
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-29 10:28:34 +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 " permalink . gotmpl " ( 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-29 10:28:34 +00:00
{{ partial "title.gotmpl" (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 }}
2024-08-29 10:28:34 +00:00
{{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
2024-08-28 22:32:21 +00:00
< 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 >