URI: 
       Fix /.xml RSSLink when uglyurls are enabled - hugo - [fork] hugo port for 9front
  HTML git clone git@git.drkhsh.at/hugo.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit b1f2b433bc4ec520df81c04493e8e1634293c8e7
   DIR parent ff28120e53c7d3d5fce9941082f72eb89adb43b7
  HTML Author: John McFarlane <john@rockfloat.com>
       Date:   Sun,  6 Dec 2015 21:34:09 -0800
       
       Fix /.xml RSSLink when uglyurls are enabled
       
       Prior to this commit the root url with uglyurls enabled is "/.xml".
       This commit relates to #175.
       
       Diffstat:
         M helpers/url.go                      |       4 ++++
       
       1 file changed, 4 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/helpers/url.go b/helpers/url.go
       @@ -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)
        }