{{- if not .IsHome}} {{- with .Title }} {{- end }} {{- end }} {{- with .Content }}
{{ . }}
{{- end }} {{- if .IsHome }} {{- $postSections := ($.Param "postSections" | default (slice "post")) }} {{- $paginator := .Paginate ( where .Data.Pages "Section" "in" $postSections ) }} {{- range $paginator.Pages }} {{- .Render "summary" }} {{- end }} {{- if eq $paginator.TotalNumberOfElements 0 }}

You don't have any posts yet!

As posts are added in {{ replaceRE ",([^,]*)$" " or $1" (delimit (apply $postSections "printf" "content/%s" ".") ", ") }} folder{{ if gt (len $postSections) 1 }}s{{ end }}, they'll appear here.

{{- end }} {{ else }} {{- range .Paginator.Pages }} {{- .Render "summary" }} {{- end }} {{- end }} {{ partial "pagination.html" . }}