diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 75c31799..ecee33e0 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -72,24 +72,26 @@ {{- $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 }} + + {{- end }} {{- end }}