From 68e9c84a1897fca44c5ce9f07a77d084ba289b14 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Mon, 20 Oct 2014 22:49:25 -0700 Subject: [PATCH] Flatten paths sent into `#in_dest_dir` --- lib/jekyll/site.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/site.rb b/lib/jekyll/site.rb index 42935638..2f639a10 100644 --- a/lib/jekyll/site.rb +++ b/lib/jekyll/site.rb @@ -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.