justice/layouts/partials/language-picker.html

3 lines
258 B
HTML
Raw Normal View History

2023-12-27 20:47:48 -05:00
<!-- https://discourse.gohugo.io/t/language-switcher-in-menu/11570/5 -->
{{ range .Site.Languages }} {{ if eq . $.Site.Language }} {{ else }} {{ range $.Translations }}
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a> {{ end }} {{ end }} {{ end }}