mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Make .IsHome work when homepage as page
This commit is contained in:
@@ -1282,6 +1282,7 @@ func (s *Site) newHomePage() *Page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
p.Title = p.Site.Title
|
p.Title = p.Site.Title
|
||||||
|
p.IsHome = true
|
||||||
p.URL = helpers.URLizeAndPrep("/")
|
p.URL = helpers.URLizeAndPrep("/")
|
||||||
p.URLPath.Permalink = s.permalink(p.URL)
|
p.URLPath.Permalink = s.permalink(p.URL)
|
||||||
p.RSSLink = s.permalink("/" + ".xml")
|
p.RSSLink = s.permalink("/" + ".xml")
|
||||||
|
Reference in New Issue
Block a user