Skip to content

Commit

Permalink
Make .IsHome work when homepage as page
Browse files Browse the repository at this point in the history
  • Loading branch information
spf13 committed Jun 19, 2015
1 parent 24351c5 commit 7e765cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hugolib/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7e765cc

Please sign in to comment.