mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
5b1eee44c6
commit
d4b9fa96f9
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue