{{ define "main" }}
{{ $Pages := .Pages }}
{{ if .IsHome }}
{{ $Pages = where site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ end }}
{{ if .Site.Params.show_excerpts }}
{{- range $Pages }}
{{ .Title }}
{{ if .Date }}{{ end }}
{{ .Summary }}
{{- if .Truncated }}
{{- end }}
{{- end }}
{{ else }}
{{ .Title | default "Posts" | humanize }}
{{- range $Pages }}
-
{{ if .Date }}{{ end }}
{{ .Title }}
{{- end }}
{{ .Content }}
{{ end }}
{{ end }}