summaryrefslogtreecommitdiff
path: root/site/themes/sine/layouts/partials
diff options
context:
space:
mode:
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 }}