mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
committed by
Bjørn Erik Pedersen
parent
48120ccfd2
commit
fe41bd61bb
@@ -157,7 +157,7 @@ func (s *Site) renderRSS(p *Page) error {
|
||||
}
|
||||
|
||||
limit := s.Cfg.GetInt("rssLimit")
|
||||
if len(rssPage.Pages) > limit {
|
||||
if limit >= 0 && len(rssPage.Pages) > limit {
|
||||
rssPage.Pages = rssPage.Pages[:limit]
|
||||
rssPage.Data["Pages"] = rssPage.Pages
|
||||
}
|
||||
|
Reference in New Issue
Block a user