This commit is contained in:
Thomas Reynolds 2016-02-19 13:24:16 -08:00
parent e36fd3f476
commit b695f6da1e

View file

@ -183,8 +183,8 @@ module Middleman
ignored
end,
layout: proc do |file, _sitemap_app|
file[:relative_path].to_s.start_with?('layout.', 'layouts/')
layout: proc do |file, app|
file[:relative_path].to_s.start_with?('layout.', app.config[:layouts_dir] + '/')
end
}, 'Callbacks that can exclude paths from the sitemap'