diff --git a/hugolib/site_render.go b/hugolib/site_render.go index 94fccd950..a9d714c1c 100644 --- a/hugolib/site_render.go +++ b/hugolib/site_render.go @@ -132,6 +132,11 @@ func (s *Site) renderPaginator(p *Page) error { } func (s *Site) renderRSS(p *Page) error { + + if viper.GetBool("disableRSS") { + return nil + } + layouts := p.rssLayouts() if layouts == nil {