Fix layout detection on non-html files
This commit is contained in:
parent
4594f46fb8
commit
822a9f0ecc
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue