mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-27 23:31:09 +00:00
parent
b6ea492b7a
commit
e682fcc622
2 changed files with 10 additions and 1 deletions
|
@ -1139,7 +1139,11 @@ func (s *Site) initializeSiteInfo() {
|
||||||
s: s,
|
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 {
|
func (s *Site) dataDir() string {
|
||||||
|
|
|
@ -284,4 +284,9 @@ baseName = "feed"
|
||||||
|
|
||||||
th.assertFileContent("public/feed.xml", "Recent content on")
|
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)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue