{{ define "header" }} {{ partial "header.html" . }} {{ end }} {{ define "content" }}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections) }} {{ range $paginator.Pages }} {{ if .Draft }} {{ .Scratch.Set "draftPage" true }} {{ else }} {{ .Scratch.Set "draftPage" false }} {{ end }}
{{ .Title }} {{ .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") }} {{ if .Description }} {{ .Description }} {{ else }} {{ .Summary }} {{ end }} {{ if .Truncated }} ... {{ end }}
{{ .Scratch.Delete "draftPage" }} {{ end }}
{{ partial "pagination.html" . }} {{ end }} {{ define "footer" }} {{ partial "footer.html" . }} {{ end }}