🛠 fix: Empty block when locale switcher is hidden (#678)

This commit is contained in:
Tomy Hsieh
2023-11-08 16:49:08 -05:00
parent e3015b9006
commit 0109db6173
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
<ul class="flex flex-col list-none text-end sm:flex-row">
{{ if .Site.Menus.main }}
{{ range .Site.Menus.main }}
{{ if and (eq .Params.action "locale") (and (not page.IsTranslated) (not site.IsMultiLingual)) }}
{{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not site.IsMultiLingual)) }}
{{ continue }}
{{ end }}
<li class="group mb-1 sm:mb-0 sm:me-7 sm:last:me-0.5">