From 7468292c4e16d6fa621eb90a22655a5d038f95a6 Mon Sep 17 00:00:00 2001 From: spf13 Date: Mon, 7 Oct 2013 09:23:42 -0400 Subject: [PATCH] Fixing bug where RSS for site was rendered in wrong location --- hugolib/site.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hugolib/site.go b/hugolib/site.go index ca54f063f..2e28b3f0f 100644 --- 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 {