diff options
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r-- | layouts/_default/list.html | 19 |
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> |