hugolib: Respect disableRSS

Fixes #2764
This commit is contained in:
Bjørn Erik Pedersen 2016-12-06 09:32:14 +01:00
parent 5b1eee44c6
commit d4b9fa96f9

View file

@ -132,6 +132,11 @@ func (s *Site) renderPaginator(p *Page) error {
} }
func (s *Site) renderRSS(p *Page) error { func (s *Site) renderRSS(p *Page) error {
if viper.GetBool("disableRSS") {
return nil
}
layouts := p.rssLayouts() layouts := p.rssLayouts()
if layouts == nil { if layouts == nil {