Update base.html
This commit is contained in:
parent
a2183cf4be
commit
38c90b9ab6
@ -8,8 +8,8 @@
|
|||||||
<link rel="icon" href="{{ blogBase['faviconUrl'] }}">
|
<link rel="icon" href="{{ blogBase['faviconUrl'] }}">
|
||||||
{%- if blogBase['themeMode']=='manual' -%}
|
{%- if blogBase['themeMode']=='manual' -%}
|
||||||
<script>
|
<script>
|
||||||
let theme = localStorage.getItem("meek_theme");
|
let theme = localStorage.getItem("meek_theme") || "light";
|
||||||
if(theme !== null) {document.documentElement.setAttribute("data-color-mode", theme);}
|
document.documentElement.setAttribute("data-color-mode", theme);
|
||||||
</script>
|
</script>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{% block head %}{% endblock %}
|
{% block head %}{% endblock %}
|
||||||
@ -55,9 +55,6 @@ function utterancesTheme(theme){
|
|||||||
const iframe=document.getElementsByClassName('utterances-frame')[0];
|
const iframe=document.getElementsByClassName('utterances-frame')[0];
|
||||||
iframe.contentWindow.postMessage(message,'https://utteranc.es');
|
iframe.contentWindow.postMessage(message,'https://utteranc.es');
|
||||||
}
|
}
|
||||||
|
|
||||||
let theme=localStorage.getItem("meek_theme") || "light";
|
|
||||||
localStorage.setItem("meek_theme", theme);
|
|
||||||
if(themeSettings[theme]){changeTheme(...themeSettings[theme]);}
|
if(themeSettings[theme]){changeTheme(...themeSettings[theme]);}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
console.log("\n %c Gmeek {{ blogBase['GMEEK_VERSION'] }} https://github.com/Meekdai/Gmeek \n\n","padding:5px 0;background:#02d81d;color:#fff");
|
console.log("\n %c Gmeek {{ blogBase['GMEEK_VERSION'] }} https://github.com/Meekdai/Gmeek \n\n","padding:5px 0;background:#02d81d;color:#fff");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user