Skip to content

Commit

Permalink
Fix separator displayed with Single lang sites
Browse files Browse the repository at this point in the history
with Hugo 0.123.x

fixes adityatelange#1449
  • Loading branch information
adityatelange authored and ayedaemon committed Mar 27, 2024
1 parent 086deef commit 7388950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@

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

0 comments on commit 7388950

Please sign in to comment.