From fc175fbf07469ccef2260436ddde717e1e9fc1ba Mon Sep 17 00:00:00 2001 From: tdro Date: Mon, 3 Oct 2022 01:08:40 -0400 Subject: themes/default/layouts/_default/home.records: Paginate --- assets/css/default.css | 16 +++--- themes/default/layouts/_default/home.history.html | 4 +- themes/default/layouts/_default/home.records.html | 64 ++++++++++------------- 3 files changed, 40 insertions(+), 44 deletions(-) diff --git a/assets/css/default.css b/assets/css/default.css index 067aa0e..319a2da 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -821,7 +821,8 @@ input[type="checkbox"]:checked + micro-card[limit] micro-overlay { display: none; } -message-archive h1 { +history-archive h1, +records-archive h1 { text-align: center; font-weight: 400; font-size: 150%; @@ -1628,7 +1629,8 @@ item-list li:hover span:last-child { text-decoration: underline; } -item-list li a { +item-list li > a, +records-archive li { display: flex; text-decoration: none; align-items: baseline; @@ -1636,23 +1638,23 @@ item-list li a { padding: 0.5rem; } -item-list a span:first-child { +item-list span:first-child { flex: 1; text-transform: uppercase; } -item-list a span:nth-child(2) { +item-list span:nth-child(2) { flex: 3; margin: 0 0.5rem; } -item-list a span:last-child { +item-list span:last-child { flex: 1; text-align: right; } -item-list a span:first-child, -item-list a span:last-child { +item-list span:first-child, +item-list span:last-child { color: #444; color: var(--fade); } diff --git a/themes/default/layouts/_default/home.history.html b/themes/default/layouts/_default/home.history.html index b0f0b80..8986608 100644 --- a/themes/default/layouts/_default/home.history.html +++ b/themes/default/layouts/_default/home.history.html @@ -20,7 +20,7 @@ ) }} - + {{ range (.Paginator.Pages.GroupByDate "2006") }} {{ range (first 1 .Pages) }} @@ -44,7 +44,7 @@ {{ end }} - + {{ partial "pagination.html" . }} diff --git a/themes/default/layouts/_default/home.records.html b/themes/default/layouts/_default/home.records.html index 4161392..2c7eea9 100644 --- a/themes/default/layouts/_default/home.records.html +++ b/themes/default/layouts/_default/home.records.html @@ -8,47 +8,41 @@ {{ define "middle" }} -{{ partial "navigator-middle.html" - (dict - "Title" "Records" - "Subtitle" (partial "count-tags.html" .) - "Icon" "arrow-left" - "IconLabel" "Back" - "Href" "/" - "Id" "back" - "Context" . - ) -}} + {{ partial "navigator-middle.html" + (dict + "Title" "Records" + "Subtitle" (partial "count-tags.html" .) + "Icon" "arrow-left" + "IconLabel" "Back" + "Href" "/" + "Id" "back" + "Context" . + ) + }} -{{- $page := 1 -}} -{{- $count := 0 -}} - - - {{ range $taxonomy := .Site.Taxonomies }} - {{ range $tag, $article := $taxonomy }} -

#{{ $tag }}

+ + + {{ range (.Paginator.Pages.GroupByDate "2006") }} + {{ range (first 1 .Pages) }} +

{{ .Date.Format "2006" }}

+ {{ end }} {{ end }} - {{ end }} -
+
+ + + {{ partial "pagination.html" . }} + {{ end }} {{ define "right" }} -- cgit v1.2.3