🐛 Fix last pagination link displayed twice

pull/368/head
James Panther 2022-11-14 13:23:44 +11:00
parent 6a904413a8
commit 7970511402
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 2 additions and 1 deletions

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

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 }}