aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/home.history.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/_default/home.history.html')
-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" }}