mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-23 21:13:16 +00:00
Fixing bug where RSS for site was rendered in wrong location
This commit is contained in:
parent
d829e05036
commit
7468292c4e
1 changed files with 4 additions and 2 deletions
|
@ -524,9 +524,11 @@ func (s *Site) RenderHomePage() error {
|
||||||
n.Permalink = permalink(s, "index.xml")
|
n.Permalink = permalink(s, "index.xml")
|
||||||
y := s.NewXMLBuffer()
|
y := s.NewXMLBuffer()
|
||||||
s.Tmpl.ExecuteTemplate(y, "rss.xml", n)
|
s.Tmpl.ExecuteTemplate(y, "rss.xml", n)
|
||||||
err = s.WritePublic("index.xml", y)
|
err = s.WritePublic(".xml", y)
|
||||||
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if a := s.Tmpl.Lookup("404.html"); a != nil {
|
if a := s.Tmpl.Lookup("404.html"); a != nil {
|
||||||
n.Url = helpers.Urlize("404.html")
|
n.Url = helpers.Urlize("404.html")
|
||||||
|
|
Loading…
Reference in a new issue