projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24351c5
)
Make .IsHome work when homepage as page
author
spf13
<steve.francia@gmail.com>
Fri, 19 Jun 2015 14:07:47 +0000
(10:07 -0400)
committer
spf13
<steve.francia@gmail.com>
Fri, 19 Jun 2015 14:07:47 +0000
(10:07 -0400)
hugolib/site.go
patch
|
blob
|
history
diff --git
a/hugolib/site.go
b/hugolib/site.go
index 7e869fdde2ed74b6f30181f827441b613f150ae4..63918f8513877c9f2da8defe411e30ab4ad480cc 100644
(file)
--- 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")