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
1 changed files with 1 additions and 8 deletions

View File

@ -325,14 +325,7 @@ module Jekyll
# #
# Returns the Array of filtered entries. # Returns the Array of filtered entries.
def filter_entries(entries) def filter_entries(entries)
entries.reject do |e| EntryFilter.new(self).filter(entries)
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
end end
# Get the implementation class for the given Converter. # Get the implementation class for the given Converter.