Commit 022bb62b authored by Matija Obreza's avatar Matija Obreza

Added <link hreflang /> for localized content

parent 81e5e64a
......@@ -15,7 +15,20 @@
<!-- default header name is X-CSRF-TOKEN -->
<meta name="_csrf_header" content="${_csrf.headerName}"/>
<!-- Links -->
<link rel="shortcut icon" href="<c:url value="/genesys.png" />" />
<!-- l10n -->
<link rel="alternate" hreflang="en" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="en" /></c:url>" />
<link rel="alternate" hreflang="ar" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="ar" /></c:url>" />
<link rel="alternate" hreflang="de" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="de" /></c:url>" />
<link rel="alternate" hreflang="es" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="es" /></c:url>" />
<link rel="alternate" hreflang="fa" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="fa" /></c:url>" />
<link rel="alternate" hreflang="fr" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="fr" /></c:url>" />
<link rel="alternate" hreflang="pt" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="pt" /></c:url>" />
<link rel="alternate" hreflang="ru" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="ru" /></c:url>" />
<link rel="alternate" hreflang="zh" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="zh" /></c:url>" />
<title><sitemesh:write property="title" /></title>
<!-- Custom styles for this template -->
......
......@@ -13,14 +13,28 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Genesys, global database on plant genetic resources, accession database, order seeds, request for genebank material" />
<meta name="author" content="Global Crop Diversity Trust" />
<!-- CSRF protection-->
<meta name="_csrf" content="${_csrf.token}"/>
<!-- default header name is X-CSRF-TOKEN -->
<meta name="_csrf_header" content="${_csrf.headerName}"/>
<!-- Links -->
<link rel="shortcut icon" href="<c:url value="/genesys.png" />" />
<!-- l10n -->
<link rel="alternate" hreflang="en" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="en" /></c:url>" />
<link rel="alternate" hreflang="ar" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="ar" /></c:url>" />
<link rel="alternate" hreflang="de" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="de" /></c:url>" />
<link rel="alternate" hreflang="es" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="es" /></c:url>" />
<link rel="alternate" hreflang="fa" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="fa" /></c:url>" />
<link rel="alternate" hreflang="fr" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="fr" /></c:url>" />
<link rel="alternate" hreflang="pt" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="pt" /></c:url>" />
<link rel="alternate" hreflang="ru" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="ru" /></c:url>" />
<link rel="alternate" hreflang="zh" href="<c:url value="?${pageContext.request.queryString}"><c:param name="lang" value="zh" /></c:url>" />
<title><sitemesh:write property="title" /></title>
<!-- Custom styles for this template -->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment