2022-06-27 03:12:26 +00:00
|
|
|
{{- partial "partials/functions/warnings.html" .Site -}}
|
2023-01-17 01:58:04 +00:00
|
|
|
{{- partial "partials/functions/init.html" . -}}
|
2021-08-11 05:28:33 +00:00
|
|
|
<!DOCTYPE html>
|
2021-10-29 01:07:21 +00:00
|
|
|
<html
|
2023-09-11 23:22:49 +00:00
|
|
|
lang="{{- site.Language.LanguageCode | default "" -}}"
|
|
|
|
dir="{{- site.Language.LanguageDirection | default "ltr" -}}"
|
2022-02-05 08:19:47 +00:00
|
|
|
class="scroll-smooth"
|
2023-09-11 23:22:49 +00:00
|
|
|
data-default-appearance="{{- .Site.Params.defaultAppearance | default "light" -}}"
|
|
|
|
data-auto-appearance="{{- .Site.Params.autoSwitchAppearance | default "true" -}}"
|
2021-10-29 01:07:21 +00:00
|
|
|
>
|
2021-08-11 05:28:33 +00:00
|
|
|
{{- partial "head.html" . -}}
|
|
|
|
<body
|
2022-08-18 04:59:46 +00:00
|
|
|
class="flex flex-col h-screen px-6 m-auto text-lg leading-7 max-w-7xl bg-neutral text-neutral-900 dark:bg-neutral-800 dark:text-neutral sm:px-14 md:px-24 lg:px-32"
|
2021-08-11 05:28:33 +00:00
|
|
|
>
|
2022-01-18 06:26:46 +00:00
|
|
|
<div id="the-top" class="absolute flex self-center">
|
2022-01-12 04:53:24 +00:00
|
|
|
<a
|
2022-08-18 04:59:46 +00:00
|
|
|
class="px-3 py-1 text-sm -translate-y-8 rounded-b-lg bg-primary-200 focus:translate-y-0 dark:bg-neutral-600"
|
2022-01-13 04:56:30 +00:00
|
|
|
href="#main-content"
|
2023-04-05 00:50:15 +00:00
|
|
|
><span class="font-bold pe-2 text-primary-600 dark:text-primary-400">↓</span
|
2022-01-18 06:26:46 +00:00
|
|
|
>{{ i18n "nav.skip_to_main" }}</a
|
2022-01-12 04:53:24 +00:00
|
|
|
>
|
|
|
|
</div>
|
2022-06-27 02:31:15 +00:00
|
|
|
{{ $header := print "partials/header/" .Site.Params.header.layout ".html" }}
|
|
|
|
{{ if templates.Exists $header }}
|
|
|
|
{{ partial $header . }}
|
|
|
|
{{ else }}
|
|
|
|
{{ partial "partials/header/basic.html" . }}
|
|
|
|
{{ end }}
|
2022-05-25 03:57:24 +00:00
|
|
|
<div class="relative flex flex-col grow">
|
2022-05-01 00:19:32 +00:00
|
|
|
<main id="main-content" class="grow">
|
2022-06-27 00:30:07 +00:00
|
|
|
{{ block "main" . }}{{ end }}
|
|
|
|
{{ if and (.Site.Params.footer.showScrollToTop | default true) (gt .WordCount 200) }}
|
2023-04-05 00:50:15 +00:00
|
|
|
<div class="pointer-events-none absolute bottom-0 end-0 top-[100vh] w-12">
|
2022-05-01 00:19:32 +00:00
|
|
|
<a
|
|
|
|
href="#the-top"
|
2022-08-18 04:59:46 +00:00
|
|
|
class="pointer-events-auto sticky top-[calc(100vh-5.5rem)] flex h-12 w-12 items-center justify-center rounded-full bg-neutral/50 text-xl text-neutral-700 backdrop-blur hover:text-primary-600 dark:bg-neutral-800/50 dark:text-neutral dark:hover:text-primary-400"
|
2022-05-01 00:19:32 +00:00
|
|
|
aria-label="{{ i18n "nav.scroll_to_top_title" }}"
|
|
|
|
title="{{ i18n "nav.scroll_to_top_title" }}"
|
|
|
|
>
|
|
|
|
↑
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</main>
|
2022-05-25 03:57:24 +00:00
|
|
|
{{- partial "footer.html" . -}}
|
2022-05-01 00:19:32 +00:00
|
|
|
{{ if .Site.Params.enableSearch | default false }}
|
|
|
|
{{- partial "search.html" . -}}
|
2022-01-18 06:26:46 +00:00
|
|
|
{{ end }}
|
2022-05-01 00:19:32 +00:00
|
|
|
</div>
|
2021-08-11 05:28:33 +00:00
|
|
|
</body>
|
|
|
|
</html>
|