mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 02:21:37 +01:00
Hide lang switch separator if not multilang
This commit is contained in:
parent
5e61be5903
commit
5dc09b99d8
@ -72,7 +72,8 @@
|
|||||||
|
|
||||||
{{- $lang := .Lang}}
|
{{- $lang := .Lang}}
|
||||||
{{- $separator := or $label_text (not site.Params.disableThemeToggle)}}
|
{{- $separator := or $label_text (not site.Params.disableThemeToggle)}}
|
||||||
{{- with site.Home.AllTranslations }}
|
{{- if gt (len site.Home.AllTranslations) 1 }}
|
||||||
|
{{ with site.Home.AllTranslations }}
|
||||||
<ul class="lang-switch">
|
<ul class="lang-switch">
|
||||||
{{- if $separator }}<li>|</li>{{ end }}
|
{{- if $separator }}<li>|</li>{{ end }}
|
||||||
{{- range . -}}
|
{{- range . -}}
|
||||||
@ -91,6 +92,7 @@
|
|||||||
{{- end}}
|
{{- end}}
|
||||||
</ul>
|
</ul>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{- $currentPage := . }}
|
{{- $currentPage := . }}
|
||||||
|
Loading…
Reference in New Issue
Block a user