Debian Codegraph @

docs/layouts/baseof.html

raw
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 {{ partialCached "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 {{ $light := css.ChromaStyles (dict "targetPath" "css/components/chroma.css" "mode" "light") }}
21 {{ $dark := css.ChromaStyles (dict "targetPath" "css/components/chroma_dark.css" "mode" "dark" "modeSelector" true) }}
22 {{ $opts := dict "minify" (not hugo.IsDevelopment) "importContext" (slice $light $dark) }}
23 {{ with . | css.TailwindCSS $opts }}
24 {{ partial "helpers/linkcss.html" (dict "r" .) }}
25 {{ end }}
26 {{ end }}
27 {{ $t.Stop }}
28 {{ end }}
29 {{ $noop := .WordCount }}
30 {{ if .Page.Store.Get "hasMath" }}
31 <link
32 rel="stylesheet"
33 href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"
34 integrity="sha384-WcoG4HRXMzYzfCgiyfrySxx90XSl2rxY5mnVY5TwtWE6KLrArNKn0T/mOgNL0Mmi"
35 crossorigin="anonymous"
36 >
37 {{ end }}
38 {{ partial "layouts/head/head.html" . }}
39 </head>
40
41 {{ $bodyClass := printf "flex flex-col min-h-full bg-white dark:bg-blue-950 kind-%s" .Kind }}
42 {{ if .Params.searchable }}
43 {{ $bodyClass = printf "%s searchable" $bodyClass }}
44 {{ end }}
45
46 <body class="{{ $bodyClass }}">
47 {{ partial "layouts/hooks/body-start.html" . }}
48 {{/* Layout. */}}
49 {{ block "header" . }}
50 {{ partial "layouts/header/header.html" . }}
51 {{ end }}
52 {{ block "subheader" . }}
53 {{ end }}
54 {{ block "hero" . }}
55 {{ end }}
56 <div class="flex w-full xl:w-6xl h-full flex-auto mx-auto">
57 <main
58 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">
59 {{ partial "layouts/hooks/body-main-start.html" . }}
60 {{ block "main" . }}{{ end }}
61 </main>
62 {{ block "rightsidebar" . }}
63 <aside
64 class="py-15 ml-4 xl:ml-12 w-60 hidden lg:relative lg:block lg:flex-none">
65 {{ block "rightsidebar_content" . }}{{ end }}
66 </aside>
67 {{ end }}
68 </div>
69 {{/* Common icons. */}}
70 {{ partialCached "layouts/icons.html" . }}
71 {{/* Common templates. */}}
72 {{ partialCached "layouts/templates.html" . }}
73 {{/* Footer. */}}
74 {{ block "footer" . }}
75 {{ partialCached "layouts/footer.html" . }}
76 {{ end }}
77 {{ partial "layouts/hooks/body-end.html" . }}
78 </body>
79 </html>