shithub: hugo

Download patch

ref: 75cf324322fafe9f2b3f92de369752f413886353
parent: 1f61f4032824e4cc77509f263145324995f4862a
author: Bjørn Erik Pedersen <[email protected]>
date: Sat Feb 27 18:21:07 EST 2016

Set Date and Lastmod for main home page

Fixes #1903

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -1711,6 +1711,8 @@
 	n.IsHome = true
 	s.setURLs(n, "/")
 	n.Data["Pages"] = s.Pages
+	n.Date = s.Pages[0].Date
+	n.Lastmod = s.Pages[0].Lastmod
 	return n
 }