Skip to content

Commit

Permalink
Use the new EntryFilter class in Site
Browse files Browse the repository at this point in the history
  • Loading branch information
mattr- committed Nov 5, 2013
1 parent 6371379 commit 6791f9f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/jekyll/site.rb
Expand Up @@ -325,14 +325,7 @@ def site_payload
#
# 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.
Expand Down

0 comments on commit 6791f9f

Please sign in to comment.