mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
Give File.join the strings from the array
This commit is contained in:
@@ -126,7 +126,7 @@ module Jekyll
|
||||
|
||||
# The path to the page source file, relative to the site source
|
||||
def relative_path
|
||||
File.join([@dir, @name].map(&:to_s).reject(&:empty?))
|
||||
File.join(*[@dir, @name].map(&:to_s).reject(&:empty?))
|
||||
end
|
||||
|
||||
# Obtain destination path.
|
||||
|
||||
@@ -133,7 +133,7 @@ module Jekyll
|
||||
|
||||
# The path to the post source file, relative to the site source
|
||||
def relative_path
|
||||
File.join([@dir, "_posts", @name].map(&:to_s).reject(&:empty?))
|
||||
File.join(*[@dir, "_posts", @name].map(&:to_s).reject(&:empty?))
|
||||
end
|
||||
|
||||
# Compares Post objects. First compares the Post date. If the dates are
|
||||
|
||||
Reference in New Issue
Block a user