Fix #1028
This commit is contained in:
parent
e36fd3f476
commit
b695f6da1e
|
@ -183,8 +183,8 @@ module Middleman
|
||||||
ignored
|
ignored
|
||||||
end,
|
end,
|
||||||
|
|
||||||
layout: proc do |file, _sitemap_app|
|
layout: proc do |file, app|
|
||||||
file[:relative_path].to_s.start_with?('layout.', 'layouts/')
|
file[:relative_path].to_s.start_with?('layout.', app.config[:layouts_dir] + '/')
|
||||||
end
|
end
|
||||||
}, 'Callbacks that can exclude paths from the sitemap'
|
}, 'Callbacks that can exclude paths from the sitemap'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue