1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-17 18:39:08 +00:00

use translations for title and meta description (google)

This commit is contained in:
Henry Oswald 2016-07-12 14:25:04 +01:00
parent 8eae4e4044
commit 713f2110c1

View file

@ -13,7 +13,7 @@ html(itemscope, itemtype='http://schema.org/Product')
-if (typeof(title) == "undefined")
title ShareLaTeX, the Online LaTeX Editor
title= 'ShareLaTeX, '+ translate("online_latex_editor")
-else
title= translate(title) + ' - ShareLaTeX, '+translate("online_latex_editor")
@ -29,7 +29,7 @@ html(itemscope, itemtype='http://schema.org/Product')
meta(itemprop="name", content="ShareLaTeX, the Online LaTeX Editor")
-if (typeof(meta) == "undefined")
meta(itemprop="description", name="description", content="An online LaTeX editor that's easy to use. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more.")
meta(itemprop="description", name="description", content='#{translate("site_description")}')
-else
meta(itemprop="description", name="description" , content=meta)
@ -45,7 +45,7 @@ html(itemscope, itemtype='http://schema.org/Product')
ga('send', 'pageview');
- else
script(type='text/javascript').
window.ga = function() { console.log("Sending to GA", arguments) };
window.ga = function() { console.log("would send to GA", arguments) };
// Countly Analytics
if (settings.analytics && settings.analytics.countly && settings.analytics.countly.token)