From 822a9f0eccbf9a3e508dde5a1a03dd7422f4181b Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Fri, 27 Nov 2015 14:26:34 -0800 Subject: [PATCH] Fix layout detection on non-html files --- middleman-core/lib/middleman-core/sitemap/resource.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-core/sitemap/resource.rb b/middleman-core/lib/middleman-core/sitemap/resource.rb index c763cdf8..980927ca 100644 --- a/middleman-core/lib/middleman-core/sitemap/resource.rb +++ b/middleman-core/lib/middleman-core/sitemap/resource.rb @@ -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)