{{ define "main" }}
{{ partial "brand.html" . }}
{{ with .Content }}
{{ . }}
{{ end }}
{{ $pgFilter1 := where .Site.RegularPages "Draft" false }} {{ $pgFilter2 := where .Site.RegularPages "Params.date" "!=" nil }} {{ $pgFilter := $pgFilter1 | intersect $pgFilter2 | intersect $pgFilter3}} {{ range (.Paginate $pgFilter).Pages }}

{{ if .IsNode }} {{ .Title}} {{ else }} {{ .Title }}{{ if .Draft }} :: Draft{{end}} {{ end }}

{{ if .Description }}

{{ .Description }}

{{ else }} {{ if .Site.Params.showSummary }}

{{ truncate 140 .Summary }}

{{ end }} {{ end }} {{ end }}
{{ if and (.Paginator) (gt .Paginator.TotalPages 1) }}
{{ if .Paginator.HasPrev }} « {{ end }} {{.Paginator.PageNumber}} / {{.Paginator.TotalPages}} {{ if .Paginator.HasNext }} » {{ end }}
{{ end }} {{ partial "footer.html" . }}
{{ end }}