diff --git a/layouts/index.html b/layouts/index.html index 8096ce5..d66bf9e 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,7 @@ {{ define "main" }} {{ $headless := .Site.GetPage "/homepage" }} {{ $sections := $headless.Resources.ByType "page" }} +{{ $sections := cond .Site.BuildDrafts $sections (where $sections "Draft" "==" false) }}