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
1 changed files with 1 additions and 1 deletions

View File

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