URI: 
       hugolib: Fix RSSLink vs RSS Output Format - 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 e682fcc62233b47cf5bdcaf598ac0657ef089471
   DIR parent b6ea492b7a6325d04d44eeb00a990a3a0e29e0c0
  HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
       Date:   Wed, 17 May 2017 19:57:44 +0300
       
       hugolib: Fix RSSLink vs RSS Output Format
       
       Fixes #3450
       
       Diffstat:
         M hugolib/site.go                     |       6 +++++-
         M hugolib/site_output_test.go         |       5 +++++
       
       2 files changed, 10 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/hugolib/site.go b/hugolib/site.go
       @@ -1139,7 +1139,11 @@ func (s *Site) initializeSiteInfo() {
                        s:                              s,
                }
        
       -        s.Info.RSSLink = s.permalink(lang.GetString("rssURI"))
       +        rssOutputFormat, found := s.outputFormats[KindHome].GetByName(output.RSSFormat.Name)
       +
       +        if found {
       +                s.Info.RSSLink = s.permalink(rssOutputFormat.BaseFilename())
       +        }
        }
        
        func (s *Site) dataDir() string {
   DIR diff --git a/hugolib/site_output_test.go b/hugolib/site_output_test.go
       @@ -284,4 +284,9 @@ baseName = "feed"
        
                th.assertFileContent("public/feed.xml", "Recent content on")
        
       +        s := h.Sites[0]
       +
       +        //Issue #3450
       +        require.Equal(t, "http://example.com/blog/feed.xml", s.Info.RSSLink)
       +
        }