Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanxiaobei/hugo-paper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 437fe76..6cdf05e 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -18,7 +18,7 @@
setTimeout(() => htmlClass.remove('not-ready'), 10);
const setDark = (newDark) => {
- metaTheme.setAttribute('content', newDark ? 'var(--dark-bg)' : 'var(--light-bg)');
+ metaTheme.setAttribute('content', newDark ? '#000' : '#fbfbfb');
htmlClass[newDark ? 'add' : 'remove']('dark');
localStorage.setItem('dark', newDark);
};