diff --git a/lib/dimples/renderer.rb b/lib/dimples/renderer.rb
index <HASH>..<HASH> 100644
--- a/lib/dimples/renderer.rb
+++ b/lib/dimples/renderer.rb
@@ -14,7 +14,10 @@ module Dimples
       output = engine.render(scope, context) { body }.strip
       @source.metadata[:rendered_contents] = output
 
-      template = @site.templates[@source.metadata[:layout]]
+      if @source.metadata[:layout]
+        template = @site.templates[@source.metadata[:layout]]
+      end
+
       return output if template.nil?
 
       template.render(context, output)
Check for an actual layout key before trying to grab a template