mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 13:25:33 +00:00
Add image card for better third-party embedding
This commit is contained in:
parent
75fea828cb
commit
2c6cabb4ab
|
@ -77,6 +77,7 @@ proc renderHead*(prefs: Prefs; cfg: Config; titleText=""; desc=""; video="";
|
||||||
|
|
||||||
for url in images:
|
for url in images:
|
||||||
meta(property="og:image", content=getPicUrl(url))
|
meta(property="og:image", content=getPicUrl(url))
|
||||||
|
meta(property="twitter:card", content="summary_large_image")
|
||||||
|
|
||||||
if video.len > 0:
|
if video.len > 0:
|
||||||
meta(property="og:video:url", content=video)
|
meta(property="og:video:url", content=video)
|
||||||
|
|
Loading…
Reference in a new issue