mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
@@ -1711,8 +1711,10 @@ 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
|
||||
if len(s.Pages) != 0 {
|
||||
n.Date = s.Pages[0].Date
|
||||
n.Lastmod = s.Pages[0].Lastmod
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user