if err = s.RenderIndexes(); err != nil {
return
}
- s.RenderIndexesIndexes()
s.timerStep("render and write indexes")
+ s.RenderIndexesIndexes()
+ s.timerStep("render & write index indexes")
s.RenderLists()
s.timerStep("render and write lists")
if err = s.RenderPages(); err != nil {
}
}
- for _, p := range s.Pages {
- s.Sections.Add(p.Section, p)
+ for i, p := range s.Pages {
+ s.Sections.Add(p.Section, s.Pages[i])
}
for k, _ := range s.Sections {
y := s.NewXMLBuffer()
s.Tmpl.ExecuteTemplate(y, "rss.xml", n)
err = s.WritePublic(section+"/index.xml", y)
- return err
+ if err != nil {
+ return err
+ }
}
}
return nil