diff options
author | Darshan Baral <darshanbaral@gmail.com> | 2019-06-02 01:27:08 +0300 |
---|---|---|
committer | Darshan Baral <darshanbaral@gmail.com> | 2019-06-02 01:27:08 +0300 |
commit | ddf80f0972497a2cf15afc73dd7678e30bf06f99 (patch) | |
tree | f9def0b2dcc53ab5b15d5e4d587c832055443db4 | |
parent | 632bc7154d962327daf84c94ebcc941105017988 (diff) |
Fixed theme color
-rw-r--r-- | layouts/partials/head.html | 2 | ||||
-rw-r--r-- | static/js/toggleTheme.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 7d6fd33..63b5e20 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,7 +1,7 @@ <head>
<title>{{ .Site.Params.title }}</title>
- <meta name="theme-color" content="#2c2b2b" />
+ <meta name="theme-color" content="#fff" />
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta name="description" content="{{ .Site.Params.description }}" />
diff --git a/static/js/toggleTheme.js b/static/js/toggleTheme.js index c96dc63..0922a0e 100644 --- a/static/js/toggleTheme.js +++ b/static/js/toggleTheme.js @@ -4,7 +4,7 @@ let toggleTheme = function() { let elems = document.querySelectorAll(`.${darkTheme[key]}`);
elems.forEach(elem => elem.classList.add(lightTheme[key]));
elems.forEach(elem => elem.classList.remove(darkTheme[key]));
- themeColor.content = "#2c2b2b"
+ themeColor.content = "#fff"
}
isDark = !isDark;
} else {
@@ -12,7 +12,7 @@ let toggleTheme = function() { let elems = document.querySelectorAll(`.${lightTheme[key]}`);
elems.forEach(elem => elem.classList.add(darkTheme[key]));
elems.forEach(elem => elem.classList.remove(lightTheme[key]));
- themeColor.content = "#000000"
+ themeColor.content = "#2c2b2b"
}
isDark = !isDark;
}
|