Permalink
Browse files

Ignore entries if they are directories.

  • Loading branch information...
1 parent 787d68f commit 6f6ad001d2dcbda7f6acb1dd66e553be12bf585a @parkr parkr committed Mar 19, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/jekyll/site.rb
View
@@ -405,6 +405,7 @@ def get_entries(dir, subfolder)
base = File.join(self.source, dir, subfolder)
return [] unless File.exists?(base)
entries = Dir.chdir(base) { filter_entries(Dir['**/*']) }
+ entries.delete_if { |e| File.directory?(File.join(base, e)) }
end
# Aggregate post information

0 comments on commit 6f6ad00

Please sign in to comment.