Only list current language if there is a translation

This commit is contained in:
Carmen Bianca Bakker 2017-10-04 23:00:27 +02:00
parent a28a494bb1
commit f0837d83d4
No known key found for this signature in database
GPG Key ID: 76EBA6F6B6EA2EC9

View File

@ -4,10 +4,10 @@
© {{ now.Format "2006" }} {{ .Site.Title }}
</a>
<div class="flex-l">
{{ if .IsTranslated }}
<a class="f4 fw4 no-underline white-90 dn dib-ns pv2 ph3" href="{{ .Permalink }}">
{{ .Site.Params.languageName | default .Lang }}
</a>
{{ if .IsTranslated }}
{{ range .Translations }}
<a class="f4 fw4 hover-white no-underline white-40 dn dib-ns pv2 ph3" href="{{ .Permalink }}">
{{ .Site.Params.languageName | default .Lang }}