Chronological view
This commit is contained in:
@ -0,0 +1,3 @@
|
||||
---
|
||||
date: 2019-09-24
|
||||
---
|
||||
|
||||
3
content/chronological/_index.md
Normal file
3
content/chronological/_index.md
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
type: chronological
|
||||
---
|
||||
@ -1,5 +1,5 @@
|
||||
---
|
||||
date: 2017-10-19
|
||||
date: 2019-08-14
|
||||
weight: 1
|
||||
---
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
---
|
||||
date: 2017-10-19
|
||||
date: 2019-08-14
|
||||
weight: 2
|
||||
---
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
---
|
||||
date: 2017-10-19
|
||||
date: 2019-08-14
|
||||
weight: 3
|
||||
---
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
---
|
||||
date: 2017-10-19
|
||||
date: 2019-08-14
|
||||
weight: 4
|
||||
---
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
---
|
||||
date: 2017-10-19
|
||||
date: 2019-08-14
|
||||
weight: 5
|
||||
---
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
---
|
||||
date: 2019-08-09
|
||||
date: 2019-08-28
|
||||
weight: 7
|
||||
---
|
||||
|
||||
|
||||
@ -22,6 +22,7 @@ Fair enough.
|
||||
* [ally 25](/25) through 27
|
||||
* [Polyamory 4](/poly/4) through 6
|
||||
* [Sex](/sex)
|
||||
* You can now view content posted [chronologically](/chronological)
|
||||
|
||||
### Updated content
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
---
|
||||
date: 2018-08-13
|
||||
date: 2019-08-13
|
||||
weight: 2
|
||||
tags:
|
||||
- snarky
|
||||
|
||||
11
themes/ally/layouts/chronological/list.html
Normal file
11
themes/ally/layouts/chronological/list.html
Normal 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}}
|
||||
Reference in New Issue
Block a user