From: spf13 Date: Tue, 13 Aug 2013 13:23:43 +0000 (-0400) Subject: Adding support for a default content type template X-Git-Tag: v0.9~165 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ec02fa4b;p=brevno-suite%2Fhugo Adding support for a default content type template default template found at layouts/_default/single.html --- diff --git a/hugolib/site.go b/hugolib/site.go index 2f925ef0..b7353d7f 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -348,7 +348,11 @@ func (s *Site) RenderPages() error { for i, _ := range s.Pages { content, err := s.RenderThing(s.Pages[i], s.Pages[i].Layout()) if err != nil { - return err + var err2 error + content, err2 = s.RenderThing(s.Pages[i], "_default/single.html") + if err2 != nil { + return err + } } s.Pages[i].RenderedContent = content }