mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #2803 from overleaf/jel-og-video
Include og:video in metadata GitOrigin-RevId: ce49aad16eb29d22447f3206b7a1dc6accdf2933
This commit is contained in:
@@ -74,10 +74,12 @@ meta(name="twitter:card", content=metadata && metadata.twitterCardType ? metadat
|
||||
//- to do - add og:url
|
||||
-if (settings.social && settings.social.facebook && settings.social.facebook.appId)
|
||||
meta(property="fb:app_id", content=settings.social.facebook.appId)
|
||||
|
||||
-if (metadata && metadata.openGraphDescription)
|
||||
meta(property="og:description", content=metadata.openGraphDescription)
|
||||
-else
|
||||
meta(property="og:description", content=translate("site_description"))
|
||||
|
||||
-if (metadata && metadata.openGraphImage)
|
||||
//- from the CMS
|
||||
meta(property="og:image", content=metadata.openGraphImage.fields.file.url)
|
||||
@@ -87,11 +89,16 @@ meta(name="twitter:card", content=metadata && metadata.twitterCardType ? metadat
|
||||
-else
|
||||
//- the default image for ShareLaTeX
|
||||
meta(property="og:image", content='/touch-icon-192x192.png')
|
||||
|
||||
-if (metadata && metadata.openGraphType)
|
||||
meta(property="og:type", metadata.openGraphType)
|
||||
-else
|
||||
meta(property="og:type", content="website")
|
||||
|
||||
- if (metadata && metadata.openGraphVideo)
|
||||
//- from the CMS
|
||||
meta(property="og:video", content=metadata.openGraphVideo)
|
||||
|
||||
//- Viewport
|
||||
if metadata && metadata.viewport
|
||||
meta(name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes")
|
||||
|
||||
Reference in New Issue
Block a user