summaryrefslogtreecommitdiffstats
path: root/hugolib/robotstxt_test.go
diff options
context:
space:
mode:
authorCameron Moore <moorereason@gmail.com>2017-02-13 10:11:22 -0600
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-02-17 19:53:08 +0100
commit10c13f5d79e467796088cd305c8c3cb0fa7c0ee0 (patch)
treeecd7942874816ccace03ff5cf1682e54f2ffb4be /hugolib/robotstxt_test.go
parentade207635eb3f78e13278df53de707c163246a8e (diff)
hugolib: Make RSS item limit configurable
Add a new rssLimit site configuration option with default of 15. Prior to this fix, you could create your own RSS feed to override the default limit of 15, but we still had a hardcoded limit of 50 items set in `hugolib.renderRSS()`. With this option in place, the `range first 15 .Data.Pages` logic is no longer hardcoded into the embedded RSS template. Because the size of the slice passed to the template is now limited to rssLimit instead of 50, this commit is a breaking change for sites with a custom RSS template that expects more than 15 items. Fixes #3035
Diffstat (limited to 'hugolib/robotstxt_test.go')
0 files changed, 0 insertions, 0 deletions