mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #2803 from overleaf/jel-og-video
Include og:video in metadata GitOrigin-RevId: ce49aad16eb29d22447f3206b7a1dc6accdf2933
This commit is contained in:
parent
e3fe498823
commit
b0b7e56770
1 changed files with 7 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue