Flatten paths sent into #in_dest_dir

This commit is contained in:
Parker Moore
2014-10-20 22:49:25 -07:00
parent f7b1782294
commit 68e9c84a18

View File

@@ -110,7 +110,7 @@ module Jekyll
#
# Returns a path which is prefixed with the destination directory.
def in_dest_dir(*paths)
Jekyll.sanitized_path(dest, File.join(*paths))
Jekyll.sanitized_path(dest, File.join(*paths.flatten))
end
# The list of collections and their corresponding Jekyll::Collection instances.