From b326b0014dd77347f9dcd92b5b2241542316befe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=86=E7=93=9C=E4=BA=91?= Date: Wed, 16 Aug 2023 18:14:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A6=96=E9=A1=B5title?= =?UTF-8?q?=E6=9C=AA=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gmeek.py | 10 +--------- templates/plist.html | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Gmeek.py b/Gmeek.py index 5f4e1d2..633d2bf 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -92,22 +92,14 @@ class GMEEK(): post_body=self.markdown2html(f.read()) f.close() - postBase=json.loads('{}') + postBase=self.blogBase.copy() postBase["postTitle"]=issue["postTitle"] postBase["postBody"]=post_body - postBase["title"]=self.blogBase["title"] - postBase["homeUrl"]=self.blogBase["homeUrl"] - postBase["postSourceUrl"]=issue["postSourceUrl"] - postBase["faviconUrl"]=self.blogBase["faviconUrl"] - postBase["filingNum"]=self.blogBase["filingNum"] - postBase["startSite"]=self.blogBase["startSite"] - postBase["i18n"]=self.blogBase["i18n"] postBase["commentNum"]=issue["commentNum"] postBase["style"]=issue["style"] postBase["script"]=issue["script"] postBase["top"]=issue["top"] postBase["repoName"]=options.repo_name - postBase["GMEEK_VERSION"]=options.Gmeek_version file_loader = FileSystemLoader('templates') env = Environment(loader=file_loader) diff --git a/templates/plist.html b/templates/plist.html index 5cf5914..96ac7c8 100644 --- a/templates/plist.html +++ b/templates/plist.html @@ -1,6 +1,6 @@ {% extends 'base.html' %} {% block head %} -{{ blogBase['postTitle'] }} +{{ blogBase['title'] }} {% endblock %} {% block style %}