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:
authornanxiaobei <nanxiaobei@gmail.com>2022-07-19 18:54:20 +0300
committernanxiaobei <nanxiaobei@gmail.com>2022-07-19 18:54:20 +0300
commit422df59dcc52e0cbad615f5bcb291840515cb31f (patch)
tree96201b4008702b5ce68bf3bc0dba4ba0ad9bcce3
parentd84742bae03536595cf829f805b81f1f32dd3998 (diff)
update set dark
-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);
};