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}}
|
||||
{{- $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">
|
||||
{{- if $separator }}<li>|</li>{{ end }}
|
||||
{{- range . -}}
|
||||
@ -91,6 +92,7 @@
|
||||
{{- end}}
|
||||
</ul>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</div>
|
||||
</div>
|
||||
{{- $currentPage := . }}
|
||||
|
Loading…
Reference in New Issue
Block a user