From ec02fa4bddaf07d392671497c31c8136763d78f7 Mon Sep 17 00:00:00 2001 From: spf13 Date: Tue, 13 Aug 2013 09:23:43 -0400 Subject: [PATCH] Adding support for a default content type template default template found at layouts/_default/single.html --- hugolib/site.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 } -- 2.30.2