fix(header): show language separator only if we have translations

This commit is contained in:
Aditya Telange
2026-04-11 23:56:37 +05:30
parent ee4cadecc5
commit ec4eb885f2
+1 -1
View File
@@ -60,9 +60,9 @@
{{- if (not site.Params.disableLangToggle) }}
{{- $lang := .Lang}}
{{- with site.Home.Translations }}
{{- $separator := or $label_text (not site.Params.disableThemeToggle)}}
{{- if $separator }}<span>|</span>{{ end }}
{{- with site.Home.Translations }}
<ul class="lang-menu">
{{- range . -}}
{{- if ne $lang .Lang }}