shithub: hugo

Download patch

ref: 7468292c4e16d6fa621eb90a22655a5d038f95a6
parent: d829e05036ab7657974095d9a7af4ccc36b53e00
author: spf13 <[email protected]>
date: Mon Oct 7 05:23:42 EDT 2013

Fixing bug where RSS for site was rendered in wrong location

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -524,8 +524,10 @@
 		n.Permalink = permalink(s, "index.xml")
 		y := s.NewXMLBuffer()
 		s.Tmpl.ExecuteTemplate(y, "rss.xml", n)
-		err = s.WritePublic("index.xml", y)
-		return err
+		err = s.WritePublic(".xml", y)
+		if err != nil {
+			return err
+		}
 	}
 
 	if a := s.Tmpl.Lookup("404.html"); a != nil {