mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +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.IsHome = true
|
||||
p.URL = helpers.URLizeAndPrep("/")
|
||||
p.URLPath.Permalink = s.permalink(p.URL)
|
||||
p.RSSLink = s.permalink("/" + ".xml")
|
||||
|
Reference in New Issue
Block a user