mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-25 21:10:52 +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.IsHome = true
|
||||
p.URL = helpers.URLizeAndPrep("/")
|
||||
p.URLPath.Permalink = s.permalink(p.URL)
|
||||
p.RSSLink = s.permalink("/" + ".xml")
|
||||
|
|
Loading…
Reference in a new issue