Explorar o código

Add image card for better third-party embedding

110Percent %!s(int64=6) %!d(string=hai) anos
pai
achega
2c6cabb4ab
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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:
       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)