mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
Only list current language if there is a translation
This commit is contained in:
parent
a28a494bb1
commit
f0837d83d4
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user