Fix #1028
This commit is contained in:
parent
e36fd3f476
commit
b695f6da1e
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in a new issue