Skip to content
Snippets Groups Projects
Commit 531a003a authored by Marie's avatar Marie
Browse files

merge: embed video thumbnail (!782)

View MR for information: !782



Approved-by: default avatarHazelnoot <acomputerdog@gmail.com>
Approved-by: default avatarMarie <github@yuugi.dev>
parents 436e9354 1626e50f
No related branches found
No related tags found
1 merge request!782embed video thumbnail
Pipeline #1946 failed with stages
in 3 minutes and 59 seconds
......@@ -24,13 +24,14 @@ block og
meta(property='og:video:url' content= video.url)
meta(property='og:video:secure_url' content= video.url)
meta(property='og:video:type' content= video.type)
meta(property='og:image' content= video.thumbnailUrl)
// FIXME: add width and height
// FIXME: add embed player for Twitter
if images.length
meta(property='twitter:card' content='summary_large_image')
each image in images
meta(property='og:image' content= image.url)
else
else if !videos.length
meta(property='twitter:card' content='summary')
meta(property='og:image' content= avatarUrl)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment