🐛 Fix last pagination link displayed twice

This commit is contained in:
James Panther
2022-11-14 13:23:44 +11:00
parent 6a904413a8
commit 7970511402
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- List page doesn't render nested list pages ([#365](https://github.com/jpanther/congo/issues/365)) - List page doesn't render nested list pages ([#365](https://github.com/jpanther/congo/issues/365))
- Pagination is duplicated on term pages ([#366](https://github.com/jpanther/congo/issues/366)) - Pagination is duplicated on term pages ([#366](https://github.com/jpanther/congo/issues/366))
- Link to last pagination page sometimes displays twice
## [2.4.0] - 2022-11-10 ## [2.4.0] - 2022-11-10
+1 -1
View File
@@ -59,7 +59,7 @@
{{- end }} {{- end }}
{{- with .Last }} {{- with .Last }}
{{- if lt $currentPageNumber (sub .TotalPages $width) }} {{- if and (lt $currentPageNumber (sub .TotalPages $width)) (lt $end .TotalPages) }}
{{- if lt $currentPageNumber (sub .TotalPages (add $width 1)) }} {{- if lt $currentPageNumber (sub .TotalPages (add $width 1)) }}
<li>&ctdot;</li> <li>&ctdot;</li>
{{- end }} {{- end }}