Adding support for a default content type template

default template found at layouts/_default/single.html
This commit is contained in:
spf13 2013-08-13 09:23:43 -04:00
parent 8968524900
commit ec02fa4bdd

View file

@ -348,8 +348,12 @@ func (s *Site) RenderPages() error {
for i, _ := range s.Pages {
content, err := s.RenderThing(s.Pages[i], s.Pages[i].Layout())
if err != nil {
var err2 error
content, err2 = s.RenderThing(s.Pages[i], "_default/single.html")
if err2 != nil {
return err
}
}
s.Pages[i].RenderedContent = content
}
return nil