15 lines
535 B
HTML
15 lines
535 B
HTML
|
{{ 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 }}
|