bunteshaus.de/themes/buha/layouts/partials/structure/langs.html

15 lines
535 B
HTML
Raw Normal View History

2022-04-04 21:26:28 +02:00
{{ if .IsHome }}
<li class="align_menu"><h3>Languages</h3></li>
{{ range $.Site.Home.AllTranslations }}
{{ if ne .Lang $.Lang }}
<li class="align_menu"><a href="{{- .Permalink -}}">{{- i18n .Lang -}}</a></li>
{{ end }}
{{ end }}
{{ else if .Translations }}
<li class="align_menu"><h3>{{ "Languages" }}</h3></li>
{{ range .Translations }}
{{ if ne .Lang $.Lang }}
<li class="align_menu"><a href="{{- .Permalink -}}">{{- i18n .Lang -}}</a></li>
{{ end }}
{{ end }}
{{ end }}