diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 504ebc89..2ac5e039 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -4,7 +4,7 @@ {{ range .Site.Menus.footer }} - {{ 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 }} diff --git a/layouts/partials/header/basic.html b/layouts/partials/header/basic.html index 1e17e1e8..480d8fe7 100644 --- a/layouts/partials/header/basic.html +++ b/layouts/partials/header/basic.html @@ -9,7 +9,7 @@ {{ 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 }} diff --git a/layouts/partials/header/hamburger.html b/layouts/partials/header/hamburger.html index 1982d81b..6270bd33 100644 --- a/layouts/partials/header/hamburger.html +++ b/layouts/partials/header/hamburger.html @@ -25,7 +25,7 @@ {{ 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 }} diff --git a/layouts/partials/header/hybrid.html b/layouts/partials/header/hybrid.html index b07bb523..d75e826c 100644 --- a/layouts/partials/header/hybrid.html +++ b/layouts/partials/header/hybrid.html @@ -25,7 +25,7 @@ {{ 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 }} @@ -129,7 +129,7 @@ {{ 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 }}