mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Fix spf13/hugo#467. RSSLink now point to index.xml
This commit is contained in:
parent
16330cea91
commit
d064139cee
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue