diff options
| author | Zach Berwaldt <zberwaldt@tutamail.com> | 2023-10-12 08:08:37 -0400 |
|---|---|---|
| committer | Zach Berwaldt <zberwaldt@tutamail.com> | 2023-10-12 08:08:37 -0400 |
| commit | 6e6412e4a693ddc2da5e4611363fb882ad6497be (patch) | |
| tree | 8c151abcd68613d477773cc6552eeaa22a70e8ea /layouts/_default/list.html | |
| parent | d0e7f43601e90229b95191a1cdc85039e233b622 (diff) | |
Switch to light theme. remove articles.
Diffstat (limited to 'layouts/_default/list.html')
| -rw-r--r-- | layouts/_default/list.html | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index c265f91..065f708 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html | |||
| @@ -1,28 +1,26 @@ | |||
| 1 | {{ define "main" }} | 1 | {{ define "main" }} |
| 2 | <article> | 2 | <h1>{{ .Title }}</h1> |
| 3 | <h1>{{ .Title }}</h1> | 3 | {{ if .Content }} |
| 4 | {{ if .Content }} | 4 | <p>{{ .Content }}</p> |
| 5 | <p>{{ .Content }}</p> | 5 | {{ end }} |
| 6 | <section> | ||
| 7 | {{ range sort (.Paginator 3).Pages "Date" "desc" }} | ||
| 8 | <div>{{ .Render "summary" }}</div> | ||
| 6 | {{ end }} | 9 | {{ end }} |
| 7 | <section> | 10 | {{ with .Paginator }} |
| 8 | {{ range sort (.Paginator 3).Pages "Date" "desc" }} | 11 | <div class="grid"> |
| 9 | <div>{{ .Render "summary" }}</div> | 12 | <div class='flex'> |
| 13 | {{ if .HasPrev }} | ||
| 14 | <a href="{{ .Prev.URL }}">prev</a> | ||
| 10 | {{ end }} | 15 | {{ end }} |
| 11 | {{ with .Paginator }} | 16 | {{ if (or (.HasPrev) (.HasNext)) }} |
| 12 | <div class="grid"> | 17 | <p>{{ .PageNumber }} of {{ .TotalPages }}</p> |
| 13 | <div class='flex'> | 18 | {{ end }} |
| 14 | {{ if .HasPrev }} | 19 | {{ if .HasNext }} |
| 15 | <a href="{{ .Prev.URL }}">prev</a> | 20 | <a href="{{ .Next.URL }}">next</a> |
| 16 | {{ end }} | ||
| 17 | {{ if (or (.HasPrev) (.HasNext)) }} | ||
| 18 | <p>{{ .PageNumber }} of {{ .TotalPages }}</p> | ||
| 19 | {{ end }} | ||
| 20 | {{ if .HasNext }} | ||
| 21 | <a href="{{ .Next.URL }}">next</a> | ||
| 22 | {{ end }} | ||
| 23 | </div> | ||
| 24 | </div> | ||
| 25 | {{ end }} | 21 | {{ end }} |
| 26 | </section> | 22 | </div> |
| 27 | </article> | 23 | </div> |
| 24 | {{ end }} | ||
| 25 | </section> | ||
| 28 | {{ end }} | 26 | {{ end }} |
