Chronological view

This commit is contained in:
Madison Scott-Clary
2019-09-24 20:11:34 -07:00
parent 1ad3fa4ae3
commit ae383386b2
11 changed files with 25 additions and 7 deletions

View File

@ -0,0 +1,11 @@
{{ define "main" }}
<main id="main">
{{ .Content }}
{{ $paginator := .Paginate (where (where .Site.RegularPages ".Type" "!=" "news") ".Date.Year" ">=" 2019).ByPublishDate 1 }}
{{ range $paginator.Pages.ByPublishDate }}
<p class="date">{{ .Date.Format "January 2, 2006" }}</p>
{{ .Content }}
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{end}}