Utilize flexibility of Site#in_dest_dir (#8403)

Merge pull request 8403
This commit is contained in:
Ashwin Maroli 2020-10-01 19:21:41 +05:30 committed by GitHub
parent d26970cf25
commit 11020f80fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -257,8 +257,7 @@ module Jekyll
#
# Returns the full path to the output file of this document.
def destination(base_directory)
dest = site.in_dest_dir(base_directory)
path = site.in_dest_dir(dest, URL.unescape_path(url))
path = site.in_dest_dir(base_directory, URL.unescape_path(url))
if url.end_with? "/"
path = File.join(path, "index.html")
else

View File

@ -55,7 +55,6 @@ module Jekyll
#
# Returns destination file path.
def destination(dest)
dest = @site.in_dest_dir(dest)
@site.in_dest_dir(dest, Jekyll::URL.unescape_path(url))
end