aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_render.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-09-14 11:04:33 +0200
committerBjørn Erik Pedersen <[email protected]>2018-09-14 11:33:02 +0200
commit555a5612b2641075b3e1b3b7af8ce9b5aba9f200 (patch)
tree6a430cda6076f891e7da5af933859b91955c0273 /hugolib/site_render.go
parent75e54345f9a7d786bb28af64ad80eb9502fee7c7 (diff)
downloadhugo-555a5612b2641075b3e1b3b7af8ce9b5aba9f200.tar.gz
hugo-555a5612b2641075b3e1b3b7af8ce9b5aba9f200.zip
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
Diffstat (limited to 'hugolib/site_render.go')
-rw-r--r--hugolib/site_render.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/hugolib/site_render.go b/hugolib/site_render.go
index a0d6506e2..1f2c5c708 100644
--- a/hugolib/site_render.go
+++ b/hugolib/site_render.go
@@ -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]