mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #645 from sharelatex/jel-add-cms
Existence check for data from CMS
This commit is contained in:
commit
07aedaa92b
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ html(itemscope, itemtype='http://schema.org/Product')
|
|||
meta(itemprop="image", name="image", content=metaImage.fields.file.url)
|
||||
|
||||
//- Meta Tags: Twitter
|
||||
-if (typeof(settings.social.twitter.handle) != "undefined")
|
||||
-if (settings.social && settings.social.twitter && settings.social.twitter.handle)
|
||||
meta(name="twitter:site", content=settings.social.twitter.handle)
|
||||
meta(name="twitter:card", content=metaTwitterCard ? metaTwitterCard : 'summary')
|
||||
-if (typeof(metaTwitterDescription) != "undefined")
|
||||
|
@ -65,7 +65,7 @@ html(itemscope, itemtype='http://schema.org/Product')
|
|||
meta(itemprop="image", name="image", content=metaImage.fields.file.url)
|
||||
|
||||
//- Meta Tags: Open Graph
|
||||
-if (typeof(settings.social.facebook.appId) != "undefined")
|
||||
-if (settings.social && settings.social.facebook && settings.social.facebook.appId)
|
||||
meta(name="fb:app_id", content=settings.social.facebook.appId)
|
||||
-if (typeof(metaOpenGraphDescription) != "undefined")
|
||||
meta(itemprop="og:description", content=metaOpenGraphDescription)
|
||||
|
|
Loading…
Reference in a new issue