Explorar o código

remove darkThemeAsDefault

zwbetz-gh %!s(int64=4) %!d(string=hai) anos
pai
achega
2c39eba5a6
Modificáronse 2 ficheiros con 0 adicións e 11 borrados
  1. 0 10
      assets/js/template-dom-scripts.js
  2. 0 1
      exampleSite/config.yaml

+ 0 - 10
assets/js/template-dom-scripts.js

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

+ 0 - 1
exampleSite/config.yaml

@@ -24,7 +24,6 @@ params:
   dateFormat: Jan 2, 2006
   codePenUser: someUser
   katex: true
-  darkThemeAsDefault: false
   hideHeaderLinks: false
   search: true
   customCss: