Skip to content

Commit

Permalink
Add lang and hreflang attributes to language switcher links.
Browse files Browse the repository at this point in the history
  • Loading branch information
Edouard Cunibil @Happyculture committed May 9, 2019
1 parent 0da1968 commit b6b0b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/shortcodes/translations.html
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit b6b0b81

Please sign in to comment.