Skip to content

Commit

Permalink
hugolib: Avoid recreating the Paginator on copy
Browse files Browse the repository at this point in the history
See #3315
  • Loading branch information
bep committed Apr 12, 2017
1 parent 3b67759 commit e765b43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hugolib/page_output.go
Expand Up @@ -83,6 +83,7 @@ func (p *PageOutput) copy() *PageOutput {
if err != nil {
panic(err)
}
c.paginator = p.paginator
return c
}

Expand Down

0 comments on commit e765b43

Please sign in to comment.