remove darkThemeAsDefault
This commit is contained in:
parent
a86462deb4
commit
2c39eba5a6
|
@ -130,13 +130,6 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function handleDarkThemeAsDefault() {
|
|
||||||
{{ if .Site.Params.darkThemeAsDefault }}
|
|
||||||
persistTheme('true');
|
|
||||||
handleDarkThemeAsDefault = function() {};
|
|
||||||
{{ end }}
|
|
||||||
}
|
|
||||||
|
|
||||||
function showTheme() {
|
function showTheme() {
|
||||||
if (localStorage.getItem('darkTheme') === 'true') {
|
if (localStorage.getItem('darkTheme') === 'true') {
|
||||||
applyDarkTheme();
|
applyDarkTheme();
|
||||||
|
@ -150,10 +143,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
window.addEventListener('DOMContentLoaded', function () {
|
window.addEventListener('DOMContentLoaded', function () {
|
||||||
handleDarkThemeAsDefault();
|
|
||||||
|
|
||||||
showTheme();
|
showTheme();
|
||||||
|
|
||||||
showContent();
|
showContent();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,6 @@ params:
|
||||||
dateFormat: Jan 2, 2006
|
dateFormat: Jan 2, 2006
|
||||||
codePenUser: someUser
|
codePenUser: someUser
|
||||||
katex: true
|
katex: true
|
||||||
darkThemeAsDefault: false
|
|
||||||
hideHeaderLinks: false
|
hideHeaderLinks: false
|
||||||
search: true
|
search: true
|
||||||
customCss:
|
customCss:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user