1+ <!DOCTYPE html>
2+ < html lang ="{{ site.LanguageCode | default `en-US` }} ">
3+
4+ < head >
5+ < meta charset ="utf-8 ">
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
7+ < meta name ="description " content ="{{ site.Params.description | .RenderString }} ">
8+ < meta name ="author " content ="{{ site.Params.author.name }} ">
9+ < meta name ="theme-color " content ="{{ site.Params.project.themeColor.light }} " media ="(prefers-color-scheme: light) ">
10+ < meta name ="theme-color " content ="{{ site.Params.project.themeColor.dark }} " media ="(prefers-color-scheme: dark) ">
11+ {{ with .Params.robots }}
12+ < meta name ="robots " content ="{{ . }} ">
13+ {{ end }}
14+
15+ < title > {{ site.Title | .RenderString }} · {{ site.Params.description | .RenderString }}</ title >
16+ < link rel ="canonical " href ="{{ .Permalink }} ">
17+
18+ {{ $cssFiles := slice
19+ (resources.Get "css/reset.css")
20+ (resources.Get "css/theme.css")
21+ (resources.Get "css/components/button.css")
22+ (resources.Get "css/components/dropdown.css")
23+ (resources.Get "css/components/badge.css")
24+ (resources.Get "css/site/header.css")
25+ (resources.Get "css/site/footer.css")
26+ (resources.Get "css/site/layout-home.css")
27+ (resources.Get "css/sections/hero.css")
28+ (resources.Get "css/sections/card-grid.css")
29+ }}
30+
31+ {{ if site.GetPage "/home/showcase" }}
32+ {{ $cssFiles = $cssFiles | append
33+ (resources.Get "css/components/chroma.css")
34+ (resources.Get "css/components/code-window.css")
35+ (resources.Get "css/components/accordion-vertical-tabs.css")
36+ (resources.Get "css/sections/showcase.css")
37+ }}
38+ {{ end }}
39+
40+ {{ $css := $cssFiles | resources.Concat "assets/css/home.css" | minify | fingerprint }}
41+ < link rel ="stylesheet " href ="{{ $css.RelPermalink }} " integrity ="{{ $css.Data.integrity }} ">
42+
43+ {{ with site.Params.enablePageFind }}
44+ < link href ="{{ "pagefind /pagefind-component-ui.css" | absURL }}" rel="stylesheet ">
45+ {{ end }}
46+
47+ {{ partial "favicons.html" . }}
48+ {{ partial "analytics.html" . }}
49+ {{ partial "og-x-seo.html" . }}
50+ </ head >
51+
52+ < body >
53+ < div id ="content-wrapper ">
54+ {{ partial "site/header.html" . }}
55+
56+ < main >
57+ {{ partial "sections/hero.html" (index site.Data site.Language.Lang "home" "hero") }}
58+ {{ with site.GetPage "/home/showcase" }}{{ partial "sections/showcase.html" . }}{{ end }}
59+ {{ partial "sections/card-grid.html" (index site.Data site.Language.Lang "home" "card-grid") }}
60+ </ main >
61+
62+ {{ partial "site/footer.html" . }}
63+ </ div >
64+
65+ {{- $js := slice
66+ (resources.Get "js/components/dropdown.js")
67+ (resources.Get "js/site/color-preference.js")
68+ | resources.Concat "assets/js/home.js" | minify | fingerprint }}
69+ < script src ="{{ $js.RelPermalink }} " integrity ="{{ $js.Data.integrity }} "> </ script >
70+
71+ {{ with site.Params.enablePageFind }}
72+ < script src ="{{ "pagefind /pagefind-component-ui.js" | absURL }}" type="module "> </ script >
73+ {{ end }}
74+ </ body >
75+ </ html >
0 commit comments