2023-07-19 22:11:34 +01:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>
|
|
|
|
{{ .Title }}
|
|
|
|
</title>
|
|
|
|
<meta name="description" content="{{ .Description }}" />
|
|
|
|
{{ $options := dict "inlineImports" true }}
|
|
|
|
{{ $styles := resources.Get "css/styles.css" }}
|
|
|
|
{{ $styles = $styles | resources.PostCSS $options }}
|
|
|
|
{{ if hugo.IsProduction }}
|
2023-07-30 21:50:41 +01:00
|
|
|
{{ $styles = $styles | minify | fingerprint | resources.PostProcess }}
|
2023-07-19 22:11:34 +01:00
|
|
|
{{ end }}
|
|
|
|
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" />
|
2023-07-30 21:50:41 +01:00
|
|
|
|
|
|
|
<script>
|
|
|
|
/* Initialize light/dark mode */
|
|
|
|
if (localStorage.getItem("color-theme") === "dark" || (!("color-theme" in localStorage) && window.matchMedia("(prefers-color-scheme: dark)").matches)) {
|
|
|
|
document.documentElement.classList.add("dark");
|
|
|
|
} else {
|
|
|
|
document.documentElement.classList.remove("dark");
|
|
|
|
}
|
|
|
|
</script>
|
2023-07-19 22:11:34 +01:00
|
|
|
</head>
|