diff --git a/templates/base.html b/templates/base.html index f9c9282..e1320a1 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,5 +1,5 @@ - +
@@ -8,8 +8,8 @@ {% block head %}{% endblock %} @@ -46,13 +46,13 @@ else if(localStorage.getItem("meek_theme")=="dark"){changeDark();} else if(localStorage.getItem("meek_theme")=="light"){changeLight();} function changeDark(){ - document.getElementsByTagName("html")[0].attributes.getNamedItem("data-color-mode").value="{{ blogBase['nightTheme'] }}"; + document.getElementsByTagName("html")[0].attributes.getNamedItem("data-color-mode").value="dark"; document.getElementById("themeSwitch").setAttribute("d",value=IconList["moon"]); document.getElementById("themeSwitch").parentNode.style.color="#00f0ff"; if(utterancesLoad==1){utterancesTheme("dark-blue");} } function changeLight(){ - document.getElementsByTagName("html")[0].attributes.getNamedItem("data-color-mode").value="{{ blogBase['dayTheme'] }}"; + document.getElementsByTagName("html")[0].attributes.getNamedItem("data-color-mode").value="light"; document.getElementById("themeSwitch").setAttribute("d",value=IconList["sun"]); document.getElementById("themeSwitch").parentNode.style.color="#ff5000"; if(utterancesLoad==1){utterancesTheme("github-light");}