summaryrefslogtreecommitdiffstats
path: root/hugolib/site.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/site.go')
-rw-r--r--hugolib/site.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index f2ebee4cc..394549c41 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -1939,6 +1939,10 @@ func (s *Site) renderAndWritePage(name string, dest string, p *PageOutput, layou
return nil
}
+ if renderBuffer.Len() == 0 {
+ return nil
+ }
+
outBuffer := bp.GetBuffer()
defer bp.PutBuffer(outBuffer)