{{ define "main" }} {{ $pages := where .RegularPages "Type" "in" .Site.Params.mainSections }} {{ if (eq .Kind "home") }} {{ $pages = where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} {{ end }} {{ $paginator := .Paginate $pages }} {{ range $paginator.Pages }} {{ partial "title" . }} {{ .Summary }} {{ if .Truncated }} Read full post {{ end }} {{ end }} {{ partial "pagination.html" . }} {{ end }} {{ define "post-tag" }} {{ .name }} {{ end }} {{ define "post-author" }} {{ .name }} {{ end }}