Fix spf13/hugo#467. RSSLink now point to index.xml

This commit is contained in:
Jian Zhou authored and spf13 committed 2014-10-15 12:36:06 -04:00
1 parent 16330cea91
commit d064139cee
1 file changed
+3
+3
View File
@@ -84,6 +84,9 @@ func UrlPrep(ugly bool, in string) string {
return x
} else {
x := PrettifyUrl(SanitizeUrl(in))
if path.Ext(x) == ".xml" {
return x
}
url, err := purell.NormalizeURLString(x, purell.FlagAddTrailingSlash)
if err != nil {
return in