shithub: hugo

Download patch

ref: f1da5a15a37666ee59350d6600a8c14c1383f5bc
parent: d5ab7f087d967b30e7de7d789e6ad3091b42f1f7
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Jun 8 21:08:37 EDT 2017

hugolib: Make the RSS feed use the date for the node it represents

Closes #2708

--- a/hugolib/site_render.go
+++ b/hugolib/site_render.go
@@ -17,7 +17,6 @@
 	"fmt"
 	"path"
 	"sync"
-	"time"
 
 	"github.com/spf13/hugo/helpers"
 
@@ -207,14 +206,6 @@
 	}
 
 	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 {