diff --git a/layouts/index.html b/layouts/index.html index d2de694..4d0a585 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -29,9 +29,9 @@ {{- partial "sections/home.html" . -}} - {{ if .Site.Data.sections }} + {{ if (index .Site.Data .Site.Language.Lang).sections }} {{ $background:= "bg-white"}} - {{ range sort .Site.Data.sections "section.weight" }} + {{ range sort (index .Site.Data .Site.Language.Lang).sections "section.weight" }} {{ if .section.enable }}