aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-09-26 23:32:20 -0400
committertdro <tdro@noreply.example.com>2022-09-26 23:32:20 -0400
commit49a350674752a4a29829e0c0d25b31c3f13b8385 (patch)
tree7121477aa27170619d3ff6f6e728996aeb015b13 /themes/default/layouts/_default
parent18b7dd6a42a170c9726a2622d47e9e7be010b842 (diff)
downloadcanory-49a350674752a4a29829e0c0d25b31c3f13b8385.tar.gz
canory-49a350674752a4a29829e0c0d25b31c3f13b8385.tar.bz2
canory-49a350674752a4a29829e0c0d25b31c3f13b8385.zip
themes/default/layouts/_default/home.history: Paginate this
Diffstat (limited to 'themes/default/layouts/_default')
-rw-r--r--themes/default/layouts/_default/home.history.html69
1 files changed, 38 insertions, 31 deletions
diff --git a/themes/default/layouts/_default/home.history.html b/themes/default/layouts/_default/home.history.html
index 03afa5c..b0f0b80 100644
--- a/themes/default/layouts/_default/home.history.html
+++ b/themes/default/layouts/_default/home.history.html
@@ -8,39 +8,46 @@
{{ define "middle" }}
-{{ partial "navigator-middle.html"
- (dict
- "Title" "History"
- "Subtitle" (partial "count-total-messages.html" .)
- "Icon" "arrow-left"
- "IconLabel" "Back"
- "Href" "/"
- "Id" "back"
- "Context" .
- )
-}}
+ {{ partial "navigator-middle.html"
+ (dict
+ "Title" "History"
+ "Subtitle" (partial "count-total-messages.html" .)
+ "Icon" "arrow-left"
+ "IconLabel" "Back"
+ "Href" "/"
+ "Id" "back"
+ "Context" .
+ )
+ }}
-<message-archive>
- <item-list>
- {{ $type := (partial "author-user.html" .) }}
- {{ range (.Site.RegularPages.GroupByDate "2006") }}
- {{ range (first 1 .Pages) }}
- <h1>{{ .Date.Format "2006" }}</h1>
- {{ end }}
- <ul>
- {{ range .Pages }}
- <li>
- <a title="{{ partial "meta-title.html" . }}" href="{{ .RelPermalink }}#{{ partial "card-id.html" . }}">
- <span><code>{{ .Date.Format "02 Jan" }}</code></span>
- <span>{{ partial "meta-title.html" . }}</span>
- <span>@{{ partial "author-user.html" . }}</span>
- </a>
- </li>
+ <message-archive>
+ <item-list>
+ {{ range (.Paginator.Pages.GroupByDate "2006") }}
+ {{ range (first 1 .Pages) }}
+ <h1>{{ .Date.Format "2006" }}</h1>
{{ end }}
- </ul>
- {{ end }}
- </item-list>
-</message-archive>
+ <ul>
+ {{ range .Pages }}
+ <li>
+ <a
+ title="{{ partial "meta-title.html" . }}"
+ href="{{ .RelPermalink }}#{{ partial "card-id.html" . }}"
+ >
+ <span>
+ <code>{{ .Date.Format "02 Jan" }}</code>
+ </span>
+ <span>{{ partial "meta-title.html" . }}</span>
+ <span>@{{ partial "author-user.html" . }}</span>
+ </a>
+ </li>
+ {{ end }}
+ </ul>
+ {{ end }}
+ </item-list>
+ </message-archive>
+
+ {{ partial "pagination.html" . }}
+
{{ end }}
{{ define "right" }}