Utilize flexibility of Site#in_dest_dir (#8403)
Merge pull request 8403
This commit is contained in:
parent
d26970cf25
commit
11020f80fa
|
@ -257,8 +257,7 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns the full path to the output file of this document.
|
# Returns the full path to the output file of this document.
|
||||||
def destination(base_directory)
|
def destination(base_directory)
|
||||||
dest = site.in_dest_dir(base_directory)
|
path = site.in_dest_dir(base_directory, URL.unescape_path(url))
|
||||||
path = site.in_dest_dir(dest, URL.unescape_path(url))
|
|
||||||
if url.end_with? "/"
|
if url.end_with? "/"
|
||||||
path = File.join(path, "index.html")
|
path = File.join(path, "index.html")
|
||||||
else
|
else
|
||||||
|
|
|
@ -55,7 +55,6 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns destination file path.
|
# Returns destination file path.
|
||||||
def destination(dest)
|
def destination(dest)
|
||||||
dest = @site.in_dest_dir(dest)
|
|
||||||
@site.in_dest_dir(dest, Jekyll::URL.unescape_path(url))
|
@site.in_dest_dir(dest, Jekyll::URL.unescape_path(url))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue