2021-08-11 05:28:33 +00:00
|
|
|
<!DOCTYPE html>
|
2021-10-29 01:07:21 +00:00
|
|
|
<html
|
2022-01-27 04:42:05 +00:00
|
|
|
lang="{{ with .Site.Params.isoCode | default (.Site.LanguageCode | default "en") }}
|
2022-01-11 01:00:27 +00:00
|
|
|
{{- . -}}
|
|
|
|
{{ end }}"
|
2022-01-27 04:42:05 +00:00
|
|
|
dir="{{ if .Site.Params.rtl | default false -}}
|
2022-01-11 05:17:49 +00:00
|
|
|
rtl
|
|
|
|
{{- else -}}
|
|
|
|
ltr
|
|
|
|
{{- end }}"
|
2022-01-27 04:26:18 +00:00
|
|
|
class="scroll-smooth {{ if eq (.Site.Params.defaultAppearance | default "light") "dark" -}}
|
|
|
|
dark
|
|
|
|
{{- end }}"
|
|
|
|
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
|
2021-08-20 07:02:08 +00:00
|
|
|
class="flex flex-col h-screen px-6 m-auto text-lg leading-7 bg-neutral text-neutral-900 sm:px-14 md:px-24 lg:px-32 dark:bg-neutral-800 dark:text-neutral max-w-7xl"
|
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
|
|
|
|
class="px-3 py-1 text-sm -translate-y-8 rounded-b-lg bg-primary-200 dark:bg-neutral-600 focus:translate-y-0"
|
2022-01-13 04:56:30 +00:00
|
|
|
href="#main-content"
|
2022-01-12 04:53:24 +00:00
|
|
|
><span class="font-bold ltr:pr-2 rtl:pl-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>
|
2021-08-11 05:28:33 +00:00
|
|
|
{{- partial "header.html" . -}}
|
2022-01-18 23:25:48 +00:00
|
|
|
<main id="main-content" class="relative">
|
2022-01-18 06:26:46 +00:00
|
|
|
{{- block "main" . }}{{- end }}
|
2022-01-18 23:25:48 +00:00
|
|
|
{{ if and (.Site.Params.showScrollToTop | default true) (gt .WordCount 200) }}
|
2022-01-18 06:26:46 +00:00
|
|
|
<div
|
2022-01-18 23:25:48 +00:00
|
|
|
class="absolute top-[110vh] ltr:right-0 rtl:left-0 w-12 pointer-events-none bottom-[-5.5rem]"
|
2022-01-18 06:26:46 +00:00
|
|
|
>
|
|
|
|
<a
|
|
|
|
href="#the-top"
|
2022-01-18 23:25:48 +00:00
|
|
|
class="w-12 h-12 sticky pointer-events-auto top-[calc(100vh-5rem)] bg-neutral/50 dark:bg-neutral-800/50 backdrop-blur rounded-full text-xl flex items-center justify-center text-neutral-700 dark:text-neutral hover:text-primary-600 dark:hover:text-primary-400"
|
2022-01-18 06:26:46 +00:00
|
|
|
aria-label="{{ i18n "nav.scroll_to_top_title" }}"
|
|
|
|
title="{{ i18n "nav.scroll_to_top_title" }}"
|
|
|
|
>
|
2022-01-18 23:25:48 +00:00
|
|
|
↑
|
|
|
|
</a>
|
2022-01-18 06:26:46 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</main>
|
2022-01-13 04:56:30 +00:00
|
|
|
{{ if .Site.Params.enableSearch | default false }}
|
|
|
|
{{- partial "search.html" . -}}
|
|
|
|
{{ end }}
|
2021-08-11 05:28:33 +00:00
|
|
|
{{- partial "footer.html" . -}}
|
|
|
|
</body>
|
|
|
|
</html>
|