hugo

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

git clone git://git.shimmy1996.com/hugo.git
commit 89685249001e0127efc169ffd09d0a3d5eb1536f
parent c689d46aa19f0372d909e87a1ecd187443f2b6c7
Author: spf13 <steve.francia@gmail.com>
Date:   Tue, 13 Aug 2013 08:43:42 -0400

Adding support for recent content.

Diffstat:
Mhugolib/site.go | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/hugolib/site.go b/hugolib/site.go
@@ -206,7 +206,12 @@ func (s *Site) initialize() {
 
 	filepath.Walk(s.Config.GetAbsPath(s.Config.ContentDir), walker)
 
-	s.Info = SiteInfo{BaseUrl: template.URL(s.Config.BaseUrl), Title: s.Config.Title, Config: &s.Config}
+	s.Info = SiteInfo{
+		BaseUrl: template.URL(s.Config.BaseUrl),
+		Title:   s.Config.Title,
+		Recent:  &s.Pages,
+		Config:  &s.Config,
+	}
 
 	s.Shortcodes = make(map[string]ShortcodeFunc)
 }
@@ -471,9 +476,9 @@ func (s *Site) RenderLists() error {
 		if a := s.Tmpl.Lookup("rss.xml"); a != nil {
 			// XML Feed
 			if s.Config.UglyUrls {
-			        n.Url = Urlize(section + ".xml")
+				n.Url = Urlize(section + ".xml")
 			} else {
-			        n.Url = Urlize(section + "/" + "index.xml")
+				n.Url = Urlize(section + "/" + "index.xml")
 			}
 			n.Permalink = template.HTML(string(n.Site.BaseUrl) + n.Url)
 			y := s.NewXMLBuffer()