{{ define "main" }} {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }} {{ $PageContext := . }} {{ if .IsHome }} {{ $PageContext = .Site }} {{ end }} {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
{{ if $.Site.Params.showProfileSidebar }}
{{else}}
{{ end }} {{ range .Paginator.Pages }}

{{ .Title }} {{ if .Draft }}(Draft){{ end }}

{{ .Summary | plainify | safeHTML }} {{ if .Truncated }} … {{ end }}read more

{{ end }}
{{ partial "pagination.html" . }}
{{ if $.Site.Params.showProfileSidebar }}
{{ partial "listSideBar.html" . }}
{{ end }}
{{ end }}