Преглед изворни кода

Add image card for better third-party embedding

110Percent пре 6 година
родитељ
комит
2c6cabb4ab
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/views/general.nim

+ 1 - 0
src/views/general.nim

@@ -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)