Make .IsHome work when homepage as page

This commit is contained in:
spf13 2015-06-19 10:07:47 -04:00
parent 24351c58be
commit 7e765cc1bd

View file

@ -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")