{{define "main"}} {{if .Site.Params.displayHomeContent}} {{.Content}} {{end}} {{if ne .Site.Params.displayRecent false}}
recent
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} {{range first (default 4 .Site.Params.recentMax) (where $pages "Section" "ne" .Site.Params.microBlogSection)}}
{{ .Title }} {{$page := .}} {{with .Description}}

{{.}}

{{end}}
{{with .Date}} {{.Format "Jan 2 2006"}} {{end}}
{{with .Params.tags}} Tags: {{ delimit . ", " }} {{end}}
{{end}}
{{end}} {{if .Site.Params.displayMicroBlog}}
μblog
{{ range where (where site.RegularPages "Type" "in" site.Params.microBlogSection) "Params.pinned" true }}
pinned
{{.Content}}
{{ end }} {{ range where (where site.RegularPages "Type" "in" site.Params.microBlogSection) "Params.pinned" "ne" true}}
{{if ne .Params.pinned nil}}
pinned
{{end}}
{{.Content}}
{{ end }}
{{end}} {{end }}