-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhead.html
More file actions
33 lines (31 loc) · 1.2 KB
/
head.html
File metadata and controls
33 lines (31 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{{ partial "head/meta.html" . }}
{{ $styles := resources.Get "css/style.min.css" }}
{{ if $styles }}
{{ $styles = $styles | postCSS }}
{{ end }}
{{ if .Site.IsServer }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" />
{{ else }}
{{ if $styles }}
{{ $styles = $styles | minify | fingerprint | resources.PostProcess }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" />
{{ end }}
{{ end }}
<link rel="stylesheet" href="{{ .Site.Params.assetsDir }}/css/style.min.css" />
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="/css/new-prism.css" />
<link rel="stylesheet" href="/css/data-den.min.css" />
<meta name="theme-color" content="#f8fafc" />
<script>
try {
if (
localStorage.theme === 'dark' ||
(!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)
) {
document.documentElement.classList.add('dark');
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0B1120');
} else {
document.documentElement.classList.remove('dark');
}
} catch (_) {}
</script>