Fix frontmatter ignore to not create phantom pages and to generally be simpler.
This commit is contained in:
parent
07828d8aa0
commit
111d021630
|
@ -109,16 +109,9 @@ module Middleman::CoreExtensions::FrontMatter
|
|||
|
||||
# Setup ignore callback
|
||||
@app.ignore do |path|
|
||||
if @app.sitemap.exists?(path)
|
||||
p = @app.sitemap.page(path)
|
||||
file_path = p.relative_path
|
||||
|
||||
if !p.proxy? && has_data?(file_path)
|
||||
d = data(file_path)
|
||||
if d && d[0]
|
||||
d[0].has_key?("ignored") && d[0]["ignored"] == true
|
||||
else
|
||||
false
|
||||
end
|
||||
!p.proxy? && p.data && p.data["ignored"] == true
|
||||
else
|
||||
false
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue