mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-20 10:44:20 +00:00
Make .IsHome work when homepage as page
This commit is contained in:
parent
24351c58be
commit
7e765cc1bd
1 changed files with 1 additions and 0 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue