updated header, footer and feed js
All checks were successful
publish / publish (push) Successful in 23s

This commit is contained in:
Jannik Menzel 2025-06-20 21:46:09 +02:00
parent e76e021d97
commit 9b3a38fa16
4 changed files with 82 additions and 49 deletions

View file

@ -1,18 +1,3 @@
<!-- 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>
<!-- Localization Auto Redirect -->
{{ if .IsHome }}
<script>