mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
75cf324322
commit
804603155f
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue