From a2183cf4be459bfddfaa1972d88122cba4dcb3b0 Mon Sep 17 00:00:00 2001 From: Meekdai Date: Tue, 2 Apr 2024 16:20:54 +0800 Subject: [PATCH] Update post.html --- templates/post.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/post.html b/templates/post.html index b6c61c1..0b4ab93 100644 --- a/templates/post.html +++ b/templates/post.html @@ -81,13 +81,13 @@ function openComments(){ script.setAttribute("src","https://utteranc.es/client.js"); script.setAttribute("repo","{{ blogBase['repoName'] }}"); script.setAttribute("issue-term","title"); - {%- if blogBase['themeMode']=='manual' -%} + {% if blogBase['themeMode']=='manual' %} if(localStorage.getItem("meek_theme")=="dark"){script.setAttribute("theme","dark-blue");} else if(localStorage.getItem("meek_theme")=="light") {script.setAttribute("theme","github-light");} else{script.setAttribute("theme","preferred-color-scheme");} - {%- else -%} + {% else %} script.setAttribute("theme","{{ blogBase['nightTheme'] }}"); - {%- endif -%} + {% endif %} script.setAttribute("crossorigin","anonymous"); script.setAttribute("async",""); cm.appendChild(script);