{{ define "hero" }} {{ partial "hero.html" (dict "Title" .Title "Content" "Perhaps you were looking for one of these?") }} {{ end }} {{ define "main"}} {{ $query := where (where (where (where site.RegularPages.ByDate.Reverse "Title" "!=" "") "Kind" "in" (slice "page" "section")) "Params.private" "!=" true) "Permalink" "!=" "" }} {{ $count := len $query }} {{ if gt $count 0 }} {{ range first 5 $query }} {{ partial "post.html" . }} {{ end }} {{ end }} {{ end }}