diff --git a/layouts/index.html b/layouts/_default/index.html similarity index 94% rename from layouts/index.html rename to layouts/_default/index.html index 1f3b1ac..fe24e7e 100644 --- a/layouts/index.html +++ b/layouts/_default/index.html @@ -1,9 +1,9 @@ {{ define "main" }} -{{ $headless := .Site.GetPage "/homepage" }} +{{ $headless := .GetPage "./homepage" }} {{ $sections := $headless.Resources.ByType "page" }} {{ $sections := cond .Site.BuildDrafts $sections (where $sections "Draft" "==" false) }} {{ $content := where (where $sections "Params.external" "==" nil) "Params.detailed_page_homepage_content" "ne" false }} -{{ $languages := .Site.Languages }} +{{ $translations := .Page.AllTranslations }} {{ if not .Params.header_use_video }} @@ -35,17 +35,17 @@ {{- partial "custom_header_video.html" . -}} {{ end }} - {{ $num_lang := len $languages }} + {{ $num_lang := len $translations }} {{ if and (gt $num_lang 1) $.Site.Params.language_menu }}