Merge pull request #1707 from jordanandree/v4-skip-front-matter-for-ignored-resource
Skip front matter parsing for ignored resources
This commit is contained in:
commit
5d0f12e6ca
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ module Middleman::CoreExtensions
|
||||||
Contract ResourceList => ResourceList
|
Contract ResourceList => ResourceList
|
||||||
def manipulate_resource_list(resources)
|
def manipulate_resource_list(resources)
|
||||||
resources.each do |resource|
|
resources.each do |resource|
|
||||||
|
next if resource.ignored?
|
||||||
next if resource.file_descriptor.nil?
|
next if resource.file_descriptor.nil?
|
||||||
|
|
||||||
fmdata = data(resource.file_descriptor[:full_path].to_s).first.dup
|
fmdata = data(resource.file_descriptor[:full_path].to_s).first.dup
|
||||||
|
|
Loading…
Add table
Reference in a new issue