There was an error while loading. Please reload this page.
1 parent b6ea492 commit e682fccCopy full SHA for e682fcc
hugolib/site.go
@@ -1139,7 +1139,11 @@ func (s *Site) initializeSiteInfo() {
1139
s: s,
1140
}
1141
1142
- s.Info.RSSLink = s.permalink(lang.GetString("rssURI"))
+ rssOutputFormat, found := s.outputFormats[KindHome].GetByName(output.RSSFormat.Name)
1143
+
1144
+ if found {
1145
+ s.Info.RSSLink = s.permalink(rssOutputFormat.BaseFilename())
1146
+ }
1147
1148
1149
func (s *Site) dataDir() string {
hugolib/site_output_test.go
@@ -284,4 +284,9 @@ baseName = "feed"
284
285
th.assertFileContent("public/feed.xml", "Recent content on")
286
287
+ s := h.Sites[0]
288
289
+ //Issue #3450
290
+ require.Equal(t, "http://example.com/blog/feed.xml", s.Info.RSSLink)
291
292
0 commit comments