Explorar el Código

hide hidden domains in hreflang head of html

Henry Oswald hace 10 años
padre
commit
618935b643
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      services/web/app/views/layout.jade

+ 2 - 1
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")