Fix layout detection on non-html files
This commit is contained in:
parent
4594f46fb8
commit
822a9f0ecc
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ module Middleman
|
|||
locs[:current_path] ||= destination_path
|
||||
|
||||
# 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.render(locs, opts)
|
||||
|
|
Loading…
Reference in a new issue