From 79d8dfb086f4a14a3fc1b452dfb95304624a1b2b Mon Sep 17 00:00:00 2001 From: Meekdai Date: Sun, 7 Apr 2024 13:38:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=A4=96=E9=83=A8?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gmeek.py | 2 +- templates/plist.html | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Gmeek.py b/Gmeek.py index 275dbe1..9414fbd 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -72,7 +72,7 @@ class GMEEK(): os.mkdir(self.post_dir) def defaultConfig(self): - dconfig={"singlePage":[],"startSite":"","filingNum":"","onePageListNum":15,"commentLabelColor":"#006b75","yearColorList":["#bc4c00", "#0969da", "#1f883d", "#A333D0"],"i18n":"CN","themeMode":"manual","dayTheme":"light","nightTheme":"dark","urlMode":"pinyin","script":"","style":"","bottomText":"","showPostSource":1,"iconList":{},"UTC":+8,"rssSplit":"sentence"} + dconfig={"singlePage":[],"startSite":"","filingNum":"","onePageListNum":15,"commentLabelColor":"#006b75","yearColorList":["#bc4c00", "#0969da", "#1f883d", "#A333D0"],"i18n":"CN","themeMode":"manual","dayTheme":"light","nightTheme":"dark","urlMode":"pinyin","script":"","style":"","bottomText":"","showPostSource":1,"iconList":{},"UTC":+8,"rssSplit":"sentence","exlink":{}} 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/plist.html b/templates/plist.html index 490e42f..12d002b 100644 --- a/templates/plist.html +++ b/templates/plist.html @@ -46,6 +46,13 @@ + {% for key, value in blogBase['exlink'].items() -%} + + + + + + {%- endfor %} {% for num in blogBase['singeListJson'] -%} @@ -120,6 +127,10 @@ for(var i=0;i