Verified Commit 3b0aaeab authored by Torsten Grote's avatar Torsten Grote
Browse files

Leave current language in list of translations

parent 391f9a49
......@@ -3,9 +3,14 @@
{{ if .IsTranslated }}
<h4>{{ i18n "translations" }}</h4>
<ul class="nav-list">
{{ range .Translations }}
{{ $currentPage := . }}
{{ range $.Site.Home.AllTranslations }}
<li>
{{ if (eq $currentPage.URL .URL) }}
{{ .Language.LanguageName }}: {{ .Title }}
{{ else }}
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}: {{ .Title }}</a>
{{ end }}
</li>
{{ end }}
</ul>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment