commit: 945586d98df756c41bc46f77c2919ad2bbb9624e
parent 4e1e6dc3a3fd0861a37eaa8d6380b433efbe3bff
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 9 Feb 2023 13:06:26 +0100
templates/*/nav.shtml: Add appropriate `lang` attribute on translation
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/templates/en/nav.shtml b/templates/en/nav.shtml
@@ -19,7 +19,7 @@
<li><a href="/standards">standards</a>: opinions on them</li>
</ul>
<ul>
-<!--#if expr="${transPageUrl}" --> <li><a rel="alternate" hreflang="fr" href="<!--#echo var="transPageUrl" -->">Français</a></li><!--#endif -->
+<!--#if expr="${transPageUrl}" --> <li><a rel="alternate" lang="fr" hreflang="fr" href="<!--#echo var="transPageUrl" -->">Français</a></li><!--#endif -->
<!--#if expr="${feedUrl}" --> <li><a rel="alternate" type="application/atom+xml" href="<!--#echo var="feedUrl" -->">Atom feed</a></li><!--#endif -->
<li><a href="gemini://hacktivis.me/">gemini-space</a></li>
<li><a href="https://lanodan.eu/home">Resume</a></li>
diff --git a/templates/fr/nav.shtml b/templates/fr/nav.shtml
@@ -13,7 +13,7 @@
<li><a href="https://xn--lwifi-sra.fr/">læwifi.fr</a></li>
</ul>
<ul>
-<!--#if expr="${transPageUrl}" --> <li><a rel="alternate" hreflang="en" href="<!--#echo var="transPageUrl" -->">English</a></li><!--#endif -->
+<!--#if expr="${transPageUrl}" --> <li><a rel="alternate" lang="en" hreflang="en" href="<!--#echo var="transPageUrl" -->">English</a></li><!--#endif -->
<!--#if expr="${feedUrl}" --> <li><a rel="alternate" type="application/atom+xml" href="<!--#echo var="feedUrl" -->">Flux Atom</a></li><!--#endif -->
<li><a href="gemini://hacktivis.me/">espace gemini</a></li>
<li><a href="https://lanodan.eu/accueil">CV</a></li>