hugo

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

git clone git://git.shimmy1996.com/hugo.git
commit 7a521ad1a1ac956dc638f1934509220760f9171f
parent b7b6f054a90f9f9b97cdf99fd24dccb38e332422
Author: spf13 <steve.francia@gmail.com>
Date:   Thu, 11 Jul 2013 22:31:58 -0400

Fixing some RSS issues

Diffstat:
Mhugolib/site.go | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/hugolib/site.go b/hugolib/site.go
@@ -276,6 +276,7 @@ func (s *Site) RenderIndexes() {
 				// XML Feed
 				y := s.NewXMLBuffer()
 				n.Url = Urlize(plural + "/" + k + ".xml")
+                n.Permalink = template.HTML(string(n.Site.BaseUrl) + "/" + plural + "/" + k + ".xml")
 				s.Tmpl.ExecuteTemplate(y, "rss.xml", n)
 				s.WritePublic(plural, k+".xml", y.Bytes())
 			}
@@ -300,6 +301,7 @@ func (s *Site) RenderLists() {
 		if a := s.Tmpl.Lookup("rss.xml"); a != nil {
 			// XML Feed
 			n.Url = Urlize(section + "/index.xml")
+            n.Permalink = template.HTML(string(n.Site.BaseUrl) + "/" + section + "/index.xml")
 			y := s.NewXMLBuffer()
 			s.Tmpl.ExecuteTemplate(y, "rss.xml", n)
 			s.WritePublic(section, "index.xml", y.Bytes())
@@ -325,6 +327,8 @@ func (s *Site) RenderHomePage() {
 	if a := s.Tmpl.Lookup("rss.xml"); a != nil {
 		// XML Feed
 		n.Url = Urlize("index.xml")
+        n.Title = "Recent Content"
+        n.Permalink = template.HTML(string(n.Site.BaseUrl) + "/index.xml")
 		y := s.NewXMLBuffer()
 		s.Tmpl.ExecuteTemplate(y, "rss.xml", n)
 		s.WritePublic("", "index.xml", y.Bytes())