39 lines
1.7 KiB
HTML
39 lines
1.7 KiB
HTML
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width">
|
|
<link rel="icon" href="{{ "favicon.ico" | relURL }}" type="image/x-icon">
|
|
<link rel="preload" href="/images/logo.svg" as="image" type="image/svg+xml">
|
|
<link rel="preload" href="/icons/dark.svg" as="image" type="image/svg+xml">
|
|
<link rel="preload" href="/icons/light.svg" as="image" type="image/svg+xml">
|
|
<!-- Bootstrap CSS -->
|
|
<link
|
|
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
|
|
rel="stylesheet"
|
|
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
|
|
crossorigin="anonymous"
|
|
/>
|
|
<!-- Bootstrap JS -->
|
|
<script
|
|
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
|
|
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
|
|
crossorigin="anonymous"
|
|
></script>
|
|
<!-- Darkmode JS -->
|
|
<script>
|
|
(function() {
|
|
try {
|
|
const stored = localStorage.getItem("theme");
|
|
const systemPrefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
const isDark = stored ? stored === "dark" : systemPrefersDark;
|
|
if (isDark) {
|
|
document.documentElement.classList.add("dark");
|
|
}
|
|
} catch (e) {
|
|
// ignore errors
|
|
}
|
|
})();
|
|
</script>
|
|
<!-- Exo 2 Font -->
|
|
<link href="https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600&display=swap" rel="stylesheet" />
|
|
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
|
|
{{ partialCached "head/css.html" . }}
|
|
{{ partialCached "head/js.html" . }}
|