Fixing bug where RSS for site was rendered in wrong location
authorspf13 <steve.francia@gmail.com>
Mon, 7 Oct 2013 13:23:42 +0000 (09:23 -0400)
committerspf13 <steve.francia@gmail.com>
Mon, 7 Oct 2013 13:23:42 +0000 (09:23 -0400)
hugolib/site.go

index ca54f063f12a58833ec2c17e96ded9abda8c99e1..2e28b3f0fec4fefe39a6fb4e9bbfdf2639cf88f9 100644 (file)
@@ -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 {