Use the new `EntryFilter` class in `Site`
This commit is contained in:
parent
63713799cd
commit
6791f9fc12
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue