{{/* 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 and $.Data.theme.ShowDates (not .HideDate)}}

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

{{end}} {{template "posttags" (dict "tags" .Tags "hash" $.Data.theme.TagHash)}}
{{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}} {{/* .tags and .hash (the theme's TagHash: list them as #name) */}} {{define "posttags"}}{{if .tags}}

{{range .tags}}{{if $.hash}}#{{end}}{{.Name}} {{end}}

{{end}}{{end}}