aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-04-12 13:00:44 +0200
committerBjørn Erik Pedersen <[email protected]>2017-04-12 21:15:51 +0200
commite765b43e2bf3d017f8ae8fd4d455d7bd60e11973 (patch)
treeed2a744759845b43c7acf0f3269a6c4bacecf6b1
parent3b67759495c9268c30e6ba2d8c7e3b75d52d2960 (diff)
downloadhugo-e765b43e2bf3d017f8ae8fd4d455d7bd60e11973.tar.gz
hugo-e765b43e2bf3d017f8ae8fd4d455d7bd60e11973.zip
hugolib: Avoid recreating the Paginator on copy
See #3315
-rw-r--r--hugolib/page_output.go1
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
}