hugo

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

git clone git://git.shimmy1996.com/hugo.git
commit 7468292c4e16d6fa621eb90a22655a5d038f95a6
parent d829e05036ab7657974095d9a7af4ccc36b53e00
Author: spf13 <steve.francia@gmail.com>
Date:   Mon,  7 Oct 2013 09:23:42 -0400

Fixing bug where RSS for site was rendered in wrong location

Diffstat:
Mhugolib/site.go | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/hugolib/site.go b/hugolib/site.go
@@ -524,8 +524,10 @@ func (s *Site) RenderHomePage() error {
 		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 {