mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
Fixing bug where RSS for site was rendered in wrong location
This commit is contained in:
@ -524,8 +524,10 @@ func (s *Site) RenderHomePage() error {
|
||||
n.Permalink = permalink(s, "index.xml")
|
||||
y := s.NewXMLBuffer()
|
||||
s.Tmpl.ExecuteTemplate(y, "rss.xml", n)
|
||||
err = s.WritePublic("index.xml", y)
|
||||
return err
|
||||
err = s.WritePublic(".xml", y)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if a := s.Tmpl.Lookup("404.html"); a != nil {
|
||||
|
Reference in New Issue
Block a user