mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-20 01:41:52 +00: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
|
return x
|
||||||
} else {
|
} else {
|
||||||
x := PrettifyUrl(SanitizeUrl(in))
|
x := PrettifyUrl(SanitizeUrl(in))
|
||||||
|
if path.Ext(x) == ".xml" {
|
||||||
|
return x
|
||||||
|
}
|
||||||
url, err := purell.NormalizeURLString(x, purell.FlagAddTrailingSlash)
|
url, err := purell.NormalizeURLString(x, purell.FlagAddTrailingSlash)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return in
|
return in
|
||||||
|
|
Loading…
Reference in a new issue