hugo

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

git clone git://git.shimmy1996.com/hugo.git
commit b1f2b433bc4ec520df81c04493e8e1634293c8e7
parent ff28120e53c7d3d5fce9941082f72eb89adb43b7
Author: John McFarlane <john@rockfloat.com>
Date:   Sun,  6 Dec 2015 21:34:09 -0800

Fix /.xml RSSLink when uglyurls are enabled

Prior to this commit the root url with uglyurls enabled is "/.xml".
This commit relates to #175.

Diffstat:
Mhelpers/url.go | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/helpers/url.go b/helpers/url.go
@@ -269,6 +269,10 @@ func Uglify(in string) string {
 		}
 		return in
 	}
+	// /.xml -> /index.xml
+	if name == "" {
+		return path.Dir(in) + "index" + ext
+	}
 	// /section/name.html -> /section/name.html
 	return path.Clean(in)
 }