Use the new EntryFilter class in Site

This commit is contained in:
Matt Rogers
2013-11-04 21:35:53 -06:00
parent 63713799cd
commit 6791f9fc12

View File

@@ -325,14 +325,7 @@ module Jekyll
#
# Returns the Array of filtered entries.
def filter_entries(entries)
entries.reject do |e|
unless self.include.glob_include?(e)
['.', '_', '#'].include?(e[0..0]) ||
e[-1..-1] == '~' ||
self.exclude.glob_include?(e) ||
(File.symlink?(e) && self.safe)
end
end
EntryFilter.new(self).filter(entries)
end
# Get the implementation class for the given Converter.