Skip to content

Commit f1da5a1

Browse files
committed
hugolib: Make the RSS feed use the date for the node it represents
Closes #2708
1 parent d5ab7f0 commit f1da5a1

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

‎hugolib/site_render.go‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
"fmt"
1818
"path"
1919
"sync"
20-
"time"
2120

2221
"github.com/spf13/hugo/helpers"
2322

@@ -208,14 +207,6 @@ func (s *Site) renderRSS(p *PageOutput) error {
208207

209208
p.Kind = kindRSS
210209

211-
// TODO(bep) we zero the date here to get the number of diffs down in
212-
// testing. But this should be set back later; the RSS feed should
213-
// inherit the publish date from the node it represents.
214-
if p.Kind == KindTaxonomy {
215-
var zeroDate time.Time
216-
p.Date = zeroDate
217-
}
218-
219210
limit := s.Cfg.GetInt("rssLimit")
220211
if limit >= 0 && len(p.Pages) > limit {
221212
p.Pages = p.Pages[:limit]

0 commit comments

Comments
 (0)