{{ $pages := .Pages }} {{ if .IsHome }} {{ $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} {{ end }}
{{ if .IsHome }}

{{ site.Params.indexTitle | markdownify }}

{{ else }}

{{ .Title | markdownify }}{{ if eq .Kind "term" }}  

{{ end }} {{ end }} {{ .Content }}
{{- range (.Paginate $pages).Pages }} {{- $postDate := .Date.Format "2006-01-02" }} {{- $updateDate := .Lastmod.Format "2006-01-02" }}

{{ .Title | markdownify }}

{{ .Summary }}

{{ end }} {{- template "_internal/pagination.html" . }}