From 618935b6436a542e92609f4badf3aa3748dc0405 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 4 May 2016 22:00:43 +0100 Subject: [PATCH] hide hidden domains in hreflang head of html --- services/web/app/views/layout.jade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/app/views/layout.jade b/services/web/app/views/layout.jade index 4346629ade..ae0e7550be 100644 --- a/services/web/app/views/layout.jade +++ b/services/web/app/views/layout.jade @@ -23,7 +23,8 @@ html(itemscope, itemtype='http://schema.org/Product') if settings.i18n.subdomainLang each subdomainDetails in settings.i18n.subdomainLang - link(rel="alternate", href=subdomainDetails.url+currentUrl, hreflang=subdomainDetails.lngCode) + if !subdomainDetails.hide + link(rel="alternate", href=subdomainDetails.url+currentUrl, hreflang=subdomainDetails.lngCode) meta(itemprop="name", content="ShareLaTeX, the Online LaTeX Editor")