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,3 @@
---
date: 2019-09-24
---

View File

@ -0,0 +1,3 @@
---
type: chronological
---

View File

@ -1,5 +1,5 @@
--- ---
date: 2017-10-19 date: 2019-08-14
weight: 1 weight: 1
--- ---

View File

@ -1,5 +1,5 @@
--- ---
date: 2017-10-19 date: 2019-08-14
weight: 2 weight: 2
--- ---

View File

@ -1,5 +1,5 @@
--- ---
date: 2017-10-19 date: 2019-08-14
weight: 3 weight: 3
--- ---

View File

@ -1,5 +1,5 @@
--- ---
date: 2017-10-19 date: 2019-08-14
weight: 4 weight: 4
--- ---

View File

@ -1,5 +1,5 @@
--- ---
date: 2017-10-19 date: 2019-08-14
weight: 5 weight: 5
--- ---

View File

@ -1,5 +1,5 @@
--- ---
date: 2019-08-09 date: 2019-08-28
weight: 7 weight: 7
--- ---

View File

@ -22,6 +22,7 @@ Fair enough.
* [ally 25](/25) through 27 * [ally 25](/25) through 27
* [Polyamory 4](/poly/4) through 6 * [Polyamory 4](/poly/4) through 6
* [Sex](/sex) * [Sex](/sex)
* You can now view content posted [chronologically](/chronological)
### Updated content ### Updated content

View File

@ -1,5 +1,5 @@
--- ---
date: 2018-08-13 date: 2019-08-13
weight: 2 weight: 2
tags: tags:
- snarky - snarky

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}}