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