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

This commit is contained in:
Jian Zhou 2014-10-08 16:02:53 -04:00 committed by spf13
parent 16330cea91
commit d064139cee

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