Fix date issue with home page in Sitemap
authorVincent Batoufflet <vincent@batoufflet.info>
Sat, 10 May 2014 08:45:33 +0000 (10:45 +0200)
committerspf13 <steve.francia@gmail.com>
Sat, 10 May 2014 19:33:18 +0000 (15:33 -0400)
hugolib/site.go

index 839c87e7ed3a9577c47e1ee3ae96bb85497dc5b3..1a4f785db86758395e1e04bd8e7bb240d8dbaa39 100644 (file)
@@ -759,6 +759,7 @@ func (s *Site) RenderSitemap() error {
        pages := make(Pages, 0)
 
        page := &Page{}
+       page.Date = s.Info.LastChange
        page.Site = s.Info
        page.Url = "/"