diff --git a/lib/jekyll/static_file.rb b/lib/jekyll/static_file.rb index dba66739..dfbc9fba 100644 --- a/lib/jekyll/static_file.rb +++ b/lib/jekyll/static_file.rb @@ -18,7 +18,7 @@ module Jekyll # Returns source file path. def path - File.join(@base, @dir, @name) + File.join(*[@base, @dir, @name].compact) end # Returns the source file path relative to the site source @@ -32,7 +32,7 @@ module Jekyll # # Returns destination file path. def destination(dest) - File.join(dest, @dir, @name) + File.join(*[dest, @dir, @name].compact) end # Returns last modification time for this file.