diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-06-09 01:08:37 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-06-09 01:10:16 +0200 |
commit | f1da5a15a37666ee59350d6600a8c14c1383f5bc (patch) | |
tree | 98aa8ae3f12fa6c865993a5a8bb7ea6d5f3bb8b1 /hugolib/site_render.go | |
parent | d5ab7f087d967b30e7de7d789e6ad3091b42f1f7 (diff) | |
download | hugo-f1da5a15a37666ee59350d6600a8c14c1383f5bc.tar.gz hugo-f1da5a15a37666ee59350d6600a8c14c1383f5bc.zip |
hugolib: Make the RSS feed use the date for the node it represents
Closes #2708
Diffstat (limited to 'hugolib/site_render.go')
-rw-r--r-- | hugolib/site_render.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/hugolib/site_render.go b/hugolib/site_render.go index ef95c07f4..2e56b9d9d 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] |