mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-03 03:02:19 +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
|
||||
}
|
||||
// /.xml -> /index.xml
|
||||
if name == "" {
|
||||
return path.Dir(in) + "index" + ext
|
||||
}
|
||||
// /section/name.html -> /section/name.html
|
||||
return path.Clean(in)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue