aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
authorZach Berwaldt <zberwaldt@tutamail.com>2023-09-27 21:50:42 -0400
committerZach Berwaldt <zberwaldt@tutamail.com>2023-09-27 21:50:42 -0400
commitb179606dac7cf36c490512146ad8ce898f7800b2 (patch)
tree5cdc1d48161bcb0bb2c3a4fe06e3bcd4cf14cd51 /layouts/_default/list.html
parentf7ccee9be8569eb2efc2319554e49757f550c77f (diff)
theme tweaks
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html19
1 files changed, 15 insertions, 4 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index cf36155..a86ef3a 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,10 +1,21 @@
1{{ define "main" }} 1{{ define "main" }}
2 <article> 2 <article>
3 <section>{{- .Content -}}</section> 3 <h1>{{ .Title }}</h1>
4 <section> 4 <section>
5 {{ range .Paginator.Pages }} 5 {{ range sort (.Paginator 3).Pages "Date" "desc" }}
6 <div> 6 <div>{{ .Render "summary" }}</div>
7 {{ .Render "summary" }} 7 {{ end }}
8 {{ with .Paginator }}
9 <div class="grid">
10 <div class='flex'>
11 {{ if .HasPrev }}
12 <a href="{{ .Prev.URL }}">prev</a>
13 {{ end }}
14 <p>{{ .PageNumber }} of {{ .TotalPages }}</p>
15 {{ if .HasNext }}
16 <a href="{{ .Next.URL }}">next</a>
17 {{ end }}
18 </div>
8 </div> 19 </div>
9 {{ end }} 20 {{ end }}
10 </section> 21 </section>