Fix /.xml RSSLink when uglyurls are enabled

Prior to this commit the root url with uglyurls enabled is "/.xml".
This commit relates to #175.
This commit is contained in:
John McFarlane authored and Steve Francia committed 2016-01-04 11:25:37 -05:00
1 parent ff28120e53
commit b1f2b433bc
1 file changed
+4
+4
View File
@@ -269,6 +269,10 @@ func Uglify(in string) string {
} }
return in return in
} }
// /.xml -> /index.xml
if name == "" {
return path.Dir(in) + "index" + ext
}
// /section/name.html -> /section/name.html // /section/name.html -> /section/name.html
return path.Clean(in) return path.Clean(in)
} }