commit 7e765cc1bd0ab06dbf05a467f3c648012265742b
parent 24351c58bedea72e4e113e2d2e5753a32ce2a0e3
Author: spf13 <steve.francia@gmail.com>
Date: Fri, 19 Jun 2015 10:07:47 -0400
Make .IsHome work when homepage as page
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/hugolib/site.go b/hugolib/site.go
@@ -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")