Browse Source

Add lang and hreflang attributes to language switcher links.

master
Edouard Cunibil @Happyculture 1 year ago
parent
commit
b6b0b812f6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      layouts/shortcodes/translations.html

+ 1
- 1
layouts/shortcodes/translations.html View File

@@ -1,5 +1,5 @@
<ul class="translation-list">
{{ range $.Site.Home.AllTranslations }}
<li><a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a></li>
<li><a href="{{ .Permalink }}" lang="{{ .Language }}" hreflang="{{ .Language }}">{{ .Language.LanguageName }}</a></li>
{{ end }}
</ul>

Loading…
Cancel
Save