diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9ea186edb..0a373d012 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") (or (not page.IsTranslated) (not site.IsMultiLingual)) }} + {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not hugo.IsMultilingual)) }} {{ continue }} {{ end }} diff --git a/layouts/partials/header/basic.html b/layouts/partials/header/basic.html index 340826e74..777481ef4 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") (or (not page.IsTranslated) (not site.IsMultiLingual)) }} + {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not hugo.IsMultilingual)) }} {{ continue }} {{ end }} diff --git a/layouts/partials/header/hamburger.html b/layouts/partials/header/hamburger.html index 018794ba2..62de7afb7 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") (or (not page.IsTranslated) (not site.IsMultiLingual)) }} + {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not hugo.IsMultilingual)) }} {{ continue }} {{ end }} diff --git a/layouts/partials/header/hybrid.html b/layouts/partials/header/hybrid.html index 57beb74d4..3ff44ba1b 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") (or (not page.IsTranslated) (not site.IsMultiLingual)) }} + {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not hugo.IsMultilingual)) }} {{ continue }} {{ end }} @@ -130,7 +130,7 @@ {{ if .Site.Menus.main }} {{ range .Site.Menus.main }} - {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not site.IsMultiLingual)) }} + {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not hugo.IsMultilingual)) }} {{ continue }} {{ end }} diff --git a/layouts/partials/translations.html b/layouts/partials/translations.html index d2b8c2eca..febd13d96 100644 --- a/layouts/partials/translations.html +++ b/layouts/partials/translations.html @@ -9,7 +9,7 @@ {{ with page }} {{ if .IsTranslated }} {{ $currentLang := .Page.Lang }} - {{ if site.IsMultiLingual }} + {{ if hugo.IsMultilingual }}