From 91dacffe123f98cbe99165562e36eeb54a37e0fc Mon Sep 17 00:00:00 2001 From: Meekdai Date: Tue, 9 Apr 2024 09:57:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0Open=20Graph=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E5=86=85=E5=AE=B9=EF=BC=8C=E8=AE=A9=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E5=8D=9A=E5=AE=A2=E9=93=BE=E6=8E=A5=E6=9C=89=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gmeek.py | 5 +++++ templates/post.html | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Gmeek.py b/Gmeek.py index fa57117..3f565d8 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -136,6 +136,11 @@ class GMEEK(): issue["script"]=issue["script"]+'' postBase["postTitle"]=issue["postTitle"] + postBase["postUrl"]=self.blogBase["homeUrl"]+"/"+issue["postUrl"] + postBase["description"]=issue["description"] + postBase["createdDate"]=issue["createdDate"] + postBase["author"]=self.blogBase["title"] + postBase["avatarUrl"]=self.blogBase["avatarUrl"] postBase["postBody"]=post_body postBase["commentNum"]=issue["commentNum"] postBase["style"]=issue["style"] diff --git a/templates/post.html b/templates/post.html index e774b83..bd5d94d 100644 --- a/templates/post.html +++ b/templates/post.html @@ -1,7 +1,13 @@ {% extends 'base.html' %} {% block head %} - + + + + + + + {{ blogBase['postTitle'] }} {% if blogBase['highlight']==1 %}{% endif %} {% endblock %}