mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Misc paginator adjustments
* Rewind paginator for server mode * Add some more related tests. * Replace the clumsy scratch constructs in internal paginator template with variables See #5825
This commit is contained in:
@@ -81,3 +81,7 @@ func (p *pagePaginator) Paginator(options ...interface{}) (*page.Pager, error) {
|
||||
|
||||
return p.current, nil
|
||||
}
|
||||
|
||||
func (p *pagePaginator) rewind() {
|
||||
p.current = p.current.First()
|
||||
}
|
||||
|
Reference in New Issue
Block a user