{{/* The article list and pager shared by a page and a tag listing. Expects .Data.posts, .Data.pageNum, .Data.lastPage and .Data.base (the listing's own path, which ?p=N is appended to). */}} {{define "postlist"}} {{range .Data.posts}}
{{if .Image}}{{end}}

{{.Title}}

{{if $.Data.theme.ShowDates}}

{{postdate $.Data.theme.DateFormat .CreatedAt}}

{{end}} {{template "posttags" .Tags}}
{{html .Excerpt}}
{{if .HasMore}}

{{t "Read more"}} →

{{end}}
{{end}} {{if gt .Data.lastPage 1}}
{{if gt .Data.pageNum 1}}← {{t "Newer"}}{{end}} {{tf "Page %d of %d" .Data.pageNum .Data.lastPage}} {{if lt .Data.pageNum .Data.lastPage}}{{t "Older"}} →{{end}}
{{end}} {{end}} {{define "posttags"}}{{if .}}

{{range .}}{{.Name}} {{end}}

{{end}}{{end}}