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
|
n.IsHome = true
|
||||||
s.setURLs(n, "/")
|
s.setURLs(n, "/")
|
||||||
n.Data["Pages"] = s.Pages
|
n.Data["Pages"] = s.Pages
|
||||||
n.Date = s.Pages[0].Date
|
if len(s.Pages) != 0 {
|
||||||
n.Lastmod = s.Pages[0].Lastmod
|
n.Date = s.Pages[0].Date
|
||||||
|
n.Lastmod = s.Pages[0].Lastmod
|
||||||
|
}
|
||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user