hugolib: Do not set RSS as Kind in RSS output

Before Hugo this commit  we set the pseudo page kind RSS on the page when output to RSS. This had some unintended side effects, esp. when the only output format for that page  was RSS.

For the page kinds that can have multiple output formats, the Kind should be one of the standard home, page etc.

Fixes #5138
This commit is contained in:
Bjørn Erik Pedersen 2018-09-14 11:04:33 +02:00
parent 75e54345f9
commit 555a5612b2
2 changed files with 18 additions and 2 deletions

View file

@ -248,8 +248,6 @@ func (s *Site) renderRSS(p *PageOutput) error {
return nil
}
p.Kind = kindRSS
limit := s.Cfg.GetInt("rssLimit")
if limit >= 0 && len(p.Pages) > limit {
p.Pages = p.Pages[:limit]