mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 18:15:57 +00:00
1 parent
75cf324322
commit
804603155f
1 file changed
+4
-2
+4
-2
@@ -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