Fix separator displayed with Single lang sites

with Hugo 0.123.x

fixes #1449
This commit is contained in:
Aditya Telange 2024-03-06 22:29:16 +05:30
parent 4278a07b74
commit c8f72ab1f4
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@
{{- $lang := .Lang}} {{- $lang := .Lang}}
{{- $separator := or $label_text (not site.Params.disableThemeToggle)}} {{- $separator := or $label_text (not site.Params.disableThemeToggle)}}
{{- with site.Home.AllTranslations }} {{- with site.Home.Translations }}
<ul class="lang-switch"> <ul class="lang-switch">
{{- if $separator }}<li>|</li>{{ end }} {{- if $separator }}<li>|</li>{{ end }}
{{- range . -}} {{- range . -}}