From ad2c0b561679b9a959c40e5278b31e7c657f9979 Mon Sep 17 00:00:00 2001 From: spf13 Date: Thu, 14 Nov 2013 09:37:58 -0500 Subject: [PATCH] Homepage now has all content available, use sorting and first to control rendering --- hugolib/site.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/hugolib/site.go b/hugolib/site.go index 2b7f8d98b..b1e1113dd 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -501,20 +501,12 @@ func (s *Site) RenderLists() error { } func (s *Site) RenderHomePage() error { - n := s.NewNode() n.Title = n.Site.Title n.Url = helpers.Urlize(string(n.Site.BaseUrl)) n.RSSlink = permalink(s, "index.xml") n.Permalink = permalink(s, "") - if len(s.Pages) > 0 { - n.Date = s.Pages[0].Date - if len(s.Pages) < 9 { - n.Data["Pages"] = s.Pages - } else { - n.Data["Pages"] = s.Pages[:9] - } - } + n.Data["Pages"] = s.Pages err := s.render(n, "/", "index.html") if err != nil { return err