From: spf13 Date: Fri, 19 Jun 2015 14:07:47 +0000 (-0400) Subject: Make .IsHome work when homepage as page X-Git-Tag: v0.15~334 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7e765cc1bd0ab06dbf05a467f3c648012265742b;p=brevno-suite%2Fhugo Make .IsHome work when homepage as page --- diff --git a/hugolib/site.go b/hugolib/site.go index 7e869fdd..63918f85 100644 --- 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")