From: Bjørn Erik Pedersen Date: Thu, 8 Jun 2017 23:08:37 +0000 (+0200) Subject: hugolib: Make the RSS feed use the date for the node it represents X-Git-Tag: v0.22~7 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f1da5a15;p=brevno-suite%2Fhugo hugolib: Make the RSS feed use the date for the node it represents Closes #2708 --- diff --git a/hugolib/site_render.go b/hugolib/site_render.go index ef95c07f..2e56b9d9 100644 --- a/hugolib/site_render.go +++ b/hugolib/site_render.go @@ -17,7 +17,6 @@ import ( "fmt" "path" "sync" - "time" "github.com/spf13/hugo/helpers" @@ -208,14 +207,6 @@ func (s *Site) renderRSS(p *PageOutput) error { p.Kind = kindRSS - // TODO(bep) we zero the date here to get the number of diffs down in - // testing. But this should be set back later; the RSS feed should - // inherit the publish date from the node it represents. - if p.Kind == KindTaxonomy { - var zeroDate time.Time - p.Date = zeroDate - } - limit := s.Cfg.GetInt("rssLimit") if limit >= 0 && len(p.Pages) > limit { p.Pages = p.Pages[:limit]