hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit ad2c0b561679b9a959c40e5278b31e7c657f9979
parent 13fa7cb74838f85248468c355112c3f3c8f14e8e
Author: spf13 <steve.francia@gmail.com>
Date:   Thu, 14 Nov 2013 09:37:58 -0500

Homepage now has all content available, use sorting and first to control rendering

Diffstat:
Mhugolib/site.go | 10+---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git 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