{{ define "main" }} {{/* get all the pages that are regular posts and not pages */}} {{ $postsDir := .Site.Params.Posts | default (slice "posts" "post") }} {{ $postsList := where .Site.RegularPages "Section" "in" $postsDir }} {{/* pagination */}} {{ range (.Paginate $postsList).Pages }}
{{ .Date.Format "2006-01-02" }} {{ if .Params.tags }} | {{ range .Params.tags }} #{{ . }} {{ end }} {{ end }}