Minor tweak to #1695

This commit is contained in:
Thomas Reynolds 2015-11-27 14:16:55 -08:00
parent b0582bcebf
commit 4594f46fb8
8 changed files with 20 additions and 33 deletions

View file

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