Skip to content

Commit

Permalink
og:image
Browse files Browse the repository at this point in the history
  • Loading branch information
Meekdai committed Apr 9, 2024
1 parent 4959661 commit d2aff31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gmeek.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def createPostHtml(self,issue):
postBase["description"]=issue["description"]
postBase["createdDate"]=issue["createdDate"]
postBase["author"]=self.blogBase["title"]
postBase["avatarUrl"]=self.blogBase["faviconUrl"]
postBase["image"]="https://github.com/Meekdai/meekdai.github.io/assets/11755104/b25f48ac-ca50-477c-83ca-c3bdb0b388ab"
postBase["postBody"]=post_body
postBase["commentNum"]=issue["commentNum"]
postBase["style"]=issue["style"]
Expand Down
5 changes: 1 addition & 4 deletions templates/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
<meta property="og:description" content="{{ blogBase['description'] }}">
<meta property="og:type" content="article">
<meta property="og:url" content="{{ blogBase['postUrl'] }}">
<meta property="og:image" content="{{ blogBase['avatarUrl'] }}" />
<meta property="og:image:type" content="image/svg+xml">
<meta property="og:image:width" content="64">
<meta property="og:image:height" content="64">
<meta property="og:image" content="{{ blogBase['image'] }}" />
<meta property="article:published_time" content="{{ blogBase['createdDate'] }}">
<meta property="article:author" content="{{ blogBase['author'] }}">
<title>{{ blogBase['postTitle'] }}</title>
Expand Down

0 comments on commit d2aff31

Please sign in to comment.