Don't fail if any of the path objects are nil.

Fixes #2325
This commit is contained in:
Parker Moore 2014-05-07 14:01:36 -04:00
parent 8e5392e9d9
commit 8ad4dd332a
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ module Jekyll
# Returns source file path. # Returns source file path.
def path def path
File.join(@base, @dir, @name) File.join(*[@base, @dir, @name].compact)
end end
# Returns the source file path relative to the site source # Returns the source file path relative to the site source
@ -32,7 +32,7 @@ module Jekyll
# #
# Returns destination file path. # Returns destination file path.
def destination(dest) def destination(dest)
File.join(dest, @dir, @name) File.join(*[dest, @dir, @name].compact)
end end
# Returns last modification time for this file. # Returns last modification time for this file.