Ignore entries if they are directories.
This commit is contained in:
parent
787d68f512
commit
6f6ad001d2
|
@ -405,6 +405,7 @@ module Jekyll
|
||||||
base = File.join(self.source, dir, subfolder)
|
base = File.join(self.source, dir, subfolder)
|
||||||
return [] unless File.exists?(base)
|
return [] unless File.exists?(base)
|
||||||
entries = Dir.chdir(base) { filter_entries(Dir['**/*']) }
|
entries = Dir.chdir(base) { filter_entries(Dir['**/*']) }
|
||||||
|
entries.delete_if { |e| File.directory?(File.join(base, e)) }
|
||||||
end
|
end
|
||||||
|
|
||||||
# Aggregate post information
|
# Aggregate post information
|
||||||
|
|
Loading…
Reference in New Issue