Fix layout detection on non-html files

This commit is contained in:
Thomas Reynolds 2015-11-27 14:26:34 -08:00
parent 4594f46fb8
commit 822a9f0ecc

View file

@ -133,7 +133,7 @@ module Middleman
locs[:current_path] ||= destination_path locs[:current_path] ||= destination_path
# Certain output file types don't use layouts # Certain output file types don't use layouts
opts[:layout] = false unless opts.key?(:layout) || !ext != '.html' opts[:layout] = false if !opts.key?(:layout) && ext != '.html'
renderer = ::Middleman::TemplateRenderer.new(@app, file_descriptor[:full_path].to_s) renderer = ::Middleman::TemplateRenderer.new(@app, file_descriptor[:full_path].to_s)
renderer.render(locs, opts) renderer.render(locs, opts)