diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-04-12 13:00:44 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-04-12 21:15:51 +0200 |
commit | e765b43e2bf3d017f8ae8fd4d455d7bd60e11973 (patch) | |
tree | ed2a744759845b43c7acf0f3269a6c4bacecf6b1 | |
parent | 3b67759495c9268c30e6ba2d8c7e3b75d52d2960 (diff) | |
download | hugo-e765b43e2bf3d017f8ae8fd4d455d7bd60e11973.tar.gz hugo-e765b43e2bf3d017f8ae8fd4d455d7bd60e11973.zip |
hugolib: Avoid recreating the Paginator on copy
See #3315
-rw-r--r-- | hugolib/page_output.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/page_output.go b/hugolib/page_output.go index 7b299b575..88e865c97 100644 --- a/hugolib/page_output.go +++ b/hugolib/page_output.go @@ -83,6 +83,7 @@ func (p *PageOutput) copy() *PageOutput { if err != nil { panic(err) } + c.paginator = p.paginator return c } |