summaryrefslogtreecommitdiff
path: root/site/themes/sine/layouts/partials
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2026-02-15 23:37:03 -0500
committertriethyl <triethylammonium@pm.me>2026-02-15 23:37:03 -0500
commita24b51a5d2798ca4beedece745a98163410a8b0d (patch)
treed99e29ee56a430761ee16bac7cde06cb43f71728 /site/themes/sine/layouts/partials
parent321fe94915eb8d7d79728ca9253a71042e017628 (diff)
themes overhaul and new font
Diffstat (limited to 'site/themes/sine/layouts/partials')
-rw-r--r--site/themes/sine/layouts/partials/head.html2
-rw-r--r--site/themes/sine/layouts/partials/nav.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/site/themes/sine/layouts/partials/head.html b/site/themes/sine/layouts/partials/head.html
index e7c23e5..6651e89 100644
--- a/site/themes/sine/layouts/partials/head.html
+++ b/site/themes/sine/layouts/partials/head.html
@@ -8,7 +8,7 @@
// Run as early as possible
(function() {
const theme = localStorage.getItem("theme");
- const preloadClass = theme === "dark" ? "preload-dark" : "preload-light";
+ const preloadClass = theme.includes("dark") ? "preload-dark" : "preload-light";
// Add preload class to <html>
document.documentElement.classList.add(preloadClass);
diff --git a/site/themes/sine/layouts/partials/nav.html b/site/themes/sine/layouts/partials/nav.html
index efd7e5b..889d5a0 100644
--- a/site/themes/sine/layouts/partials/nav.html
+++ b/site/themes/sine/layouts/partials/nav.html
@@ -2,7 +2,7 @@
<nav class="navbar">
<div id="logoContainer">
<a class="logo" href="{{ .Site.BaseURL }}">{{- .Site.Title -}}</a>
- <button type="button" id="toggleTheme" data-theme-toggle aria-label="switch theme"></button>
+ <button type="button" id="switchTheme" data-theme-switcher aria-label="switch theme"></button>
</div>
<ul class="nav-links">
{{ range.Site.Menus.main }}