skip front matter on ingored resources

This commit is contained in:
jordanandree 2015-12-17 14:01:37 -05:00
parent b2b461935d
commit e035d625c8

View file

@ -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