mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-03 02:51:15 +00:00
Fix /.xml RSSLink when uglyurls are enabled
Prior to this commit the root url with uglyurls enabled is "/.xml". This commit relates to #175.
This commit is contained in:
parent
ff28120e53
commit
b1f2b433bc
1 changed files with 4 additions and 0 deletions
|
@ -269,6 +269,10 @@ func Uglify(in string) string {
|
||||||
}
|
}
|
||||||
return in
|
return in
|
||||||
}
|
}
|
||||||
|
// /.xml -> /index.xml
|
||||||
|
if name == "" {
|
||||||
|
return path.Dir(in) + "index" + ext
|
||||||
|
}
|
||||||
// /section/name.html -> /section/name.html
|
// /section/name.html -> /section/name.html
|
||||||
return path.Clean(in)
|
return path.Clean(in)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue