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 rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-u1zONI5gPXUx0UKI62c75/zww972y0v2rSK5ZYlVdS6xEuWDeZWUI66v6t1gvlXJ" crossorigin="anonymous">
32 {{ end }}
33 {{ partial "layouts/head/head.html" . }}
34 </head>
35
36 {{ $bodyClass := printf "flex flex-col min-h-full bg-white dark:bg-blue-950 kind-%s" .Kind }}
37 {{ if .Params.searchable }}
38 {{ $bodyClass = printf "%s searchable" $bodyClass }}
39 {{ end }}
40
41 <body class="{{ $bodyClass }}">
42 {{ partial "layouts/hooks/body-start.html" . }}
43 {{/* Layout. */}}
44 {{ block "header" . }}
45 {{ partial "layouts/header/header.html" . }}
46 {{ end }}
47 {{ block "subheader" . }}
48 {{ end }}
49 {{ block "hero" . }}
50 {{ end }}
51 <div class="flex w-full xl:w-6xl h-full flex-auto mx-auto">
52 <main
53 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">
54 {{ partial "layouts/hooks/body-main-start.html" . }}
55 {{ block "main" . }}{{ end }}
56 </main>
57 {{ block "rightsidebar" . }}
58 <aside
59 class="py-15 ml-4 xl:ml-12 w-60 hidden lg:relative lg:block lg:flex-none">
60 {{ block "rightsidebar_content" . }}{{ end }}
61 </aside>
62 {{ end }}
63 </div>
64 {{/* Common icons. */}}
65 {{ partialCached "layouts/icons.html" . }}
66 {{/* Common templates. */}}
67 {{ partialCached "layouts/templates.html" . }}
68 {{/* Footer. */}}
69 {{ block "footer" . }}
70 {{ partialCached "layouts/footer.html" . }}
71 {{ end }}
72 {{ partial "layouts/hooks/body-end.html" . }}
73 </body>
74 </html>