From 5cde4f52e1233f9f371c74e14b955890bb020e1a Mon Sep 17 00:00:00 2001 From: Meekdai Date: Thu, 25 Jan 2024 17:47:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0=E9=A1=B5=E6=B7=BB=E5=8A=A0bo?= =?UTF-8?q?ttomText=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gmeek.py | 2 +- templates/post.html | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Gmeek.py b/Gmeek.py index a225a19..a2df39f 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -61,7 +61,7 @@ class GMEEK(): os.mkdir(self.post_dir) def defaultConfig(self): - dconfig={"startSite":"","filingNum":"","onePageListNum":15,"commentLabelColor":"#006b75","yearColorList":["#bc4c00", "#0969da", "#1f883d", "#A333D0"],"i18n":"CN","dayTheme":"light","nightTheme":"dark","urlMode":"pinyin","script":"","style":""} + dconfig={"startSite":"","filingNum":"","onePageListNum":15,"commentLabelColor":"#006b75","yearColorList":["#bc4c00", "#0969da", "#1f883d", "#A333D0"],"i18n":"CN","dayTheme":"light","nightTheme":"dark","urlMode":"pinyin","script":"","style":"","bottomText":""} config=json.loads(open('config.json', 'r', encoding='utf-8').read()) self.blogBase={**dconfig,**config}.copy() self.blogBase["postListJson"]=json.loads('{}') diff --git a/templates/post.html b/templates/post.html index 91ce526..d852831 100644 --- a/templates/post.html +++ b/templates/post.html @@ -50,9 +50,8 @@ {% endblock %} {% block content %} -
-{{ blogBase['postBody'] }} -
+
{{ blogBase['postBody'] }}
+
{{ blogBase['bottomText'] }}
{% endblock %}