Skip to content

Commit

Permalink
Add image card for better third-party embedding
Browse files Browse the repository at this point in the history
  • Loading branch information
110Percent authored and zedeus committed Aug 21, 2020
1 parent 75fea82 commit 2c6cabb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/general.nim
Expand Up @@ -77,6 +77,7 @@ proc renderHead*(prefs: Prefs; cfg: Config; titleText=""; desc=""; video="";

for url in images:
meta(property="og:image", content=getPicUrl(url))
meta(property="twitter:card", content="summary_large_image")

if video.len > 0:
meta(property="og:video:url", content=video)
Expand Down

0 comments on commit 2c6cabb

Please sign in to comment.