mirror of https://github.com/jpanther/congo.git
🐛 Fix last pagination link displayed twice
parent
6a904413a8
commit
7970511402
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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>⋯</li>
|
<li>⋯</li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in New Issue