Fix layout detection on non-html files

feature/livereload-locales-data
Thomas Reynolds 2015-11-27 14:26:34 -08:00
parent 4594f46fb8
commit 822a9f0ecc
1 changed files with 1 additions and 1 deletions

View File

@ -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)