hugo

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

git clone git://git.shimmy1996.com/hugo.git
commit c689d46aa19f0372d909e87a1ecd187443f2b6c7
parent cb39f052d19dfbf1463b028e5173fc53d917cac1
Author: Steve Francia <steve.francia@gmail.com>
Date:   Mon, 12 Aug 2013 19:42:44 -0700

Merge pull request #32 from cactus/issue-32

indexes rss.xml has wrong permalinks with ugly urls off
Diffstat:
Mhugolib/site.go | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/hugolib/site.go b/hugolib/site.go
@@ -470,7 +470,11 @@ func (s *Site) RenderLists() error {
 
 		if a := s.Tmpl.Lookup("rss.xml"); a != nil {
 			// XML Feed
-			n.Url = Urlize(section + ".xml")
+			if s.Config.UglyUrls {
+			        n.Url = Urlize(section + ".xml")
+			} else {
+			        n.Url = Urlize(section + "/" + "index.xml")
+			}
 			n.Permalink = template.HTML(string(n.Site.BaseUrl) + n.Url)
 			y := s.NewXMLBuffer()
 			s.Tmpl.ExecuteTemplate(y, "rss.xml", n)