{{ define "main" }} {{ $headless := .Site.GetPage "/homepage" }} {{ $sections := $headless.Resources.ByType "page" }} {{ $sections := cond .Site.BuildDrafts $sections (where $sections "Draft" "==" false) }}
{{ range $index_val, $elem_val := $sections }} {{ $fnav_title := .Title }} {{ with .Params.navigation_menu_title }} {{ $fnav_title = . }} {{ end }}

{{ .Title }}

{{ .Content }}
{{ end }}
{{ end }}