Fixing the comment 07cd76e783 (r744256956)
This commit is contained in:
parent
07cd76e783
commit
94ae51278b
@ -1,16 +1,15 @@
|
|||||||
{{ if .IsTranslated }}
|
|
||||||
{{ $pageLang := .Page.Lang}}
|
|
||||||
<ul class="language-select">
|
<ul class="language-select">
|
||||||
{{ range .AllTranslations }}
|
{{ $pageLang := .Page.Lang}}
|
||||||
|
{{ $translations := .AllTranslations }}
|
||||||
|
{{ if not .IsTranslated }}
|
||||||
|
{{ $translations = $.Site.Home.AllTranslations }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ range $translations }}
|
||||||
{{ if eq .Lang $pageLang }}
|
{{ if eq .Lang $pageLang }}
|
||||||
<li>
|
<li>{{ .Language.LanguageName }}</li>
|
||||||
{{ .Language.LanguageName }}
|
|
||||||
</li>
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<li>
|
<li><a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a></li>
|
||||||
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
|
||||||
</li>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user