remove darkThemeAsDefault

This commit is contained in:
zwbetz-gh 2020-11-24 20:52:10 -06:00
parent a86462deb4
commit 2c39eba5a6
2 changed files with 0 additions and 11 deletions

View File

@ -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();
}); });

View File

@ -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: