aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/term.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-05-30 16:14:44 -0400
committertdro <tdro@noreply.example.com>2023-05-30 17:01:14 -0400
commitd466fe8d98a2a789223866ccc687062b4c041907 (patch)
treeae2f23c3a3804b6c8ec81d366ca8c91fe04beb49 /themes/default/layouts/_default/term.html
parenta8a70edb5dceaa7bedd7b7912c758ed1e780993e (diff)
downloadcanory-d466fe8d98a2a789223866ccc687062b4c041907.tar.gz
canory-d466fe8d98a2a789223866ccc687062b4c041907.tar.bz2
canory-d466fe8d98a2a789223866ccc687062b4c041907.zip
themes/default/layouts/partials/navigator-middle: Remove implicit paginator
Avoid spooky action, an implicit pager can generate unnecessary pages
Diffstat (limited to 'themes/default/layouts/_default/term.html')
-rw-r--r--themes/default/layouts/_default/term.html12
1 files changed, 5 insertions, 7 deletions
diff --git a/themes/default/layouts/_default/term.html b/themes/default/layouts/_default/term.html
index f8fc983..0371a9e 100644
--- a/themes/default/layouts/_default/term.html
+++ b/themes/default/layouts/_default/term.html
@@ -6,17 +6,15 @@
{{ define "middle" }}
- {{- $terms := print (lang.FormatNumberCustom 0 (len .Data.Pages)) " " "Messages" -}}
-
{{ partial "navigator-middle.html"
(dict
- "Title" (print "#" .Title)
- "Subtitle" $terms
- "Icon" "arrow-left"
+ "Context" .
"IconLabel" "Back"
- "Href" "/"
"Id" "back"
- "Context" .
+ "Icon" "arrow-left"
+ "Title" (print "#" .Title)
+ "Subtitle" (print (lang.FormatNumberCustom 0 (len .Data.Pages)) " " "Messages")
+ "Href" (or (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | absURL)) "/")
)
}}