| 1 |
<!doctype html> |
| 2 |
<html |
| 3 |
class="h-full antialiased scheme-light dark:scheme-dark" |
| 4 |
lang="{{ site.Language.Locale }}"> |
| 5 |
<head> |
| 6 |
<meta charset="utf-8"> |
| 7 |
<title> |
| 8 |
{{ .Title }} |
| 9 |
</title> |
| 10 |
<style> |
| 11 |
[x-cloak] { |
| 12 |
display: none !important; |
| 13 |
} |
| 14 |
</style> |
| 15 |
|
| 16 |
{{ partial "layouts/head/head-js.html" . }} |
| 17 |
{{ with (templates.Defer (dict "key" "global")) }} |
| 18 |
{{ $t := debug.Timer "tailwindcss" }} |
| 19 |
{{ with resources.Get "css/styles.css" }} |
| 20 |
{{ $opts := dict "minify" (not hugo.IsDevelopment) }} |
| 21 |
{{ with . | css.TailwindCSS $opts }} |
| 22 |
{{ partial "helpers/linkcss.html" (dict "r" .) }} |
| 23 |
{{ end }} |
| 24 |
{{ end }} |
| 25 |
{{ $t.Stop }} |
| 26 |
{{ end }} |
| 27 |
{{ $noop := .WordCount }} |
| 28 |
{{ if .Page.Store.Get "hasMath" }} |
| 29 |
<link |
| 30 |
rel="stylesheet" |
| 31 |
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" |
| 32 |
integrity="sha384-WcoG4HRXMzYzfCgiyfrySxx90XSl2rxY5mnVY5TwtWE6KLrArNKn0T/mOgNL0Mmi" |
| 33 |
crossorigin="anonymous" |
| 34 |
> |
| 35 |
{{ end }} |
| 36 |
{{ partial "layouts/head/head.html" . }} |
| 37 |
</head> |
| 38 |
|
| 39 |
{{ $bodyClass := printf "flex flex-col min-h-full bg-white dark:bg-blue-950 kind-%s" .Kind }} |
| 40 |
{{ if .Params.searchable }} |
| 41 |
{{ $bodyClass = printf "%s searchable" $bodyClass }} |
| 42 |
{{ end }} |
| 43 |
|
| 44 |
<body class="{{ $bodyClass }}"> |
| 45 |
{{ partial "layouts/hooks/body-start.html" . }} |
| 46 |
{{/* Layout. */}} |
| 47 |
{{ block "header" . }} |
| 48 |
{{ partial "layouts/header/header.html" . }} |
| 49 |
{{ end }} |
| 50 |
{{ block "subheader" . }} |
| 51 |
{{ end }} |
| 52 |
{{ block "hero" . }} |
| 53 |
{{ end }} |
| 54 |
<div class="flex w-full xl:w-6xl h-full flex-auto mx-auto"> |
| 55 |
<main |
| 56 |
class="flex-1 mx-auto lg:mx-0 w-full max-w-3x lg:max-w-3x pt-8 lg:pt-14 pb-20 px-main print:pt-0"> |
| 57 |
{{ partial "layouts/hooks/body-main-start.html" . }} |
| 58 |
{{ block "main" . }}{{ end }} |
| 59 |
</main> |
| 60 |
{{ block "rightsidebar" . }} |
| 61 |
<aside |
| 62 |
class="py-15 ml-4 xl:ml-12 w-60 hidden lg:relative lg:block lg:flex-none"> |
| 63 |
{{ block "rightsidebar_content" . }}{{ end }} |
| 64 |
</aside> |
| 65 |
{{ end }} |
| 66 |
</div> |
| 67 |
{{/* Common icons. */}} |
| 68 |
{{ partial "layouts/icons.html" . }} |
| 69 |
{{/* Common templates. */}} |
| 70 |
{{ partial "layouts/templates.html" . }} |
| 71 |
{{/* Footer. */}} |
| 72 |
{{ block "footer" . }} |
| 73 |
{{ partial "layouts/footer.html" . }} |
| 74 |
{{ end }} |
| 75 |
{{ partial "layouts/hooks/body-end.html" . }} |
| 76 |
</body> |
| 77 |
</html> |