From 8ad4dd332a63e74769668e37710fe2c514976960 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Wed, 7 May 2014 14:01:36 -0400 Subject: [PATCH] Don't fail if any of the path objects are nil. Fixes #2325 --- lib/jekyll/static_file.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.