shithub: hugo

Download patch

ref: d064139cee17959f02fadce3cae97e2238abcb15
parent: 16330cea91485158155f0bb07caf66639e00c9d2
author: Jian Zhou <[email protected]>
date: Wed Oct 8 12:02:53 EDT 2014

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

--- a/helpers/url.go
+++ b/helpers/url.go
@@ -84,6 +84,9 @@
 		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