diff options
| author | Zach Berwaldt <zberwaldt@tutamail.com> | 2023-10-03 23:44:31 -0400 |
|---|---|---|
| committer | Zach Berwaldt <zberwaldt@tutamail.com> | 2023-10-03 23:44:31 -0400 |
| commit | 93a4ba55f2159e69aa1fcdaa1cf87c09e7455017 (patch) | |
| tree | 1d5ccef993cfa21b1aaf0f4c28dd9994e111cbc3 /layouts/_default/list.html | |
| parent | 81200fa6a598557f36593c950d7a63c52aa0b22f (diff) | |
add changelog, assets, new partial
Diffstat (limited to 'layouts/_default/list.html')
| -rw-r--r-- | layouts/_default/list.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index a86ef3a..38ef025 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | {{ define "main" }} | 1 | {{ define "main" }} |
| 2 | <article> | 2 | <article style="width:70ch;"> |
| 3 | <h1>{{ .Title }}</h1> | 3 | <h1>{{ .Title }}</h1> |
| 4 | {{ if .Content }} | ||
| 5 | <p>{{ .Content }}</p> | ||
| 6 | {{ end }} | ||
| 4 | <section> | 7 | <section> |
| 5 | {{ range sort (.Paginator 3).Pages "Date" "desc" }} | 8 | {{ range sort (.Paginator 3).Pages "Date" "desc" }} |
| 6 | <div>{{ .Render "summary" }}</div> | 9 | <div>{{ .Render "summary" }}</div> |
| @@ -11,7 +14,9 @@ | |||
| 11 | {{ if .HasPrev }} | 14 | {{ if .HasPrev }} |
| 12 | <a href="{{ .Prev.URL }}">prev</a> | 15 | <a href="{{ .Prev.URL }}">prev</a> |
| 13 | {{ end }} | 16 | {{ end }} |
| 14 | <p>{{ .PageNumber }} of {{ .TotalPages }}</p> | 17 | {{ if (or (.HasPrev) (.HasNext)) }} |
| 18 | <p>{{ .PageNumber }} of {{ .TotalPages }}</p> | ||
| 19 | {{ end }} | ||
| 15 | {{ if .HasNext }} | 20 | {{ if .HasNext }} |
| 16 | <a href="{{ .Next.URL }}">next</a> | 21 | <a href="{{ .Next.URL }}">next</a> |
| 17 | {{ end }} | 22 | {{ end }} |
