From a548882b31fd8fc462d5ce8d6dcaf0fcb18cc131 Mon Sep 17 00:00:00 2001 From: Meekdai Date: Tue, 2 Apr 2024 16:12:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B2=BE=E7=AE=80changeTheme=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gmeek.py | 1 - templates/base.html | 63 +++++++++++++++++++-------------------------- templates/post.html | 1 - 3 files changed, 27 insertions(+), 38 deletions(-) diff --git a/Gmeek.py b/Gmeek.py index d9c782a..bfca9f5 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -263,7 +263,6 @@ class GMEEK(): listJsonName='singeListJson' htmlFile='{}.html'.format(self.createFileName(issue,useLabel=True)) gen_Html = self.root_dir+htmlFile - else: listJsonName='postListJson' htmlFile='{}.html'.format(self.createFileName(issue)) diff --git a/templates/base.html b/templates/base.html index b5038b1..a1a304d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -8,10 +8,8 @@ {%- if blogBase['themeMode']=='manual' -%} {%- endif -%} {% block head %}{% endblock %} @@ -32,44 +30,37 @@ body{box-sizing: border-box;min-width: 200px;max-width: 900px;margin: 20px auto; {% block script %}{% endblock %} {{ blogBase['script'] }} diff --git a/templates/post.html b/templates/post.html index 493caa2..b6c61c1 100644 --- a/templates/post.html +++ b/templates/post.html @@ -69,7 +69,6 @@ document.getElementById("pathIssue").setAttribute("d",IconList["github"]); span.innerHTML="{{ blogBase['commentNum'] }}"; cmButton.appendChild(span); {%- endif %} - function openComments(){ cm=document.getElementById("comments"); cmButton=document.getElementById("cmButton");