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() {
|
||||
if (localStorage.getItem('darkTheme') === 'true') {
|
||||
applyDarkTheme();
|
||||
|
@ -150,10 +143,7 @@
|
|||
}
|
||||
|
||||
window.addEventListener('DOMContentLoaded', function () {
|
||||
handleDarkThemeAsDefault();
|
||||
|
||||
showTheme();
|
||||
|
||||
showContent();
|
||||
});
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@ params:
|
|||
dateFormat: Jan 2, 2006
|
||||
codePenUser: someUser
|
||||
katex: true
|
||||
darkThemeAsDefault: false
|
||||
hideHeaderLinks: false
|
||||
search: true
|
||||
customCss:
|
||||
|
|
Loading…
Reference in New Issue
Block a user