Skip to content

Commit

Permalink
Set Date and Lastmod for main home page
Browse files Browse the repository at this point in the history
  • Loading branch information
bep authored and tychoish committed Aug 13, 2017
1 parent d36eb29 commit 846bd49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hugolib/site.go
Expand Up @@ -1711,6 +1711,8 @@ func (s *Site) newHomeNode() *Node {
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
}

Expand Down

0 comments on commit 846bd49

Please sign in to comment.