diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-07-06 13:33:43 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-07-06 14:01:27 +0200 |
commit | 43338c3a99769eb7d0df0c12559b8b3d42b67dba (patch) | |
tree | 3d3ef19de67d4acc2beca0b8931a9bd571ba49e9 /common/maps/scratch.go | |
parent | dea71670c059ab4d5a42bd22503f18c087dd22d4 (diff) |
hugolib: Do not create paginator pages for the other output formats
This is a recent regression in Hugo, where we have started to produce `/page/30/index.json` when the main output format (usually `HTML`) is set up with pagination.
For JSON this is potentially lot of superflous work and hurts performance.
This commit reinstates the earlier behaviour: We only create paginators if in use in the main output format.
And add a test for it to prevent this from happening again.
Fixes #4890
Diffstat (limited to 'common/maps/scratch.go')
0 files changed, 0 insertions, 0 deletions