mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-29 16:58:01 -05:00
Page#dir: ensure it ends in a slash
This commit is contained in:
@@ -55,7 +55,9 @@ module Jekyll
|
||||
#
|
||||
# Returns the String destination directory.
|
||||
def dir
|
||||
url[-1, 1] == '/' ? url : File.dirname(url)
|
||||
dest_dir = url[-1, 1] == '/' ? url : File.dirname(url)
|
||||
dest_dir << '/' unless dest_dir.end_with?('/')
|
||||
dest_dir
|
||||
end
|
||||
|
||||
# The full path and filename of the post. Defined in the YAML of the post
|
||||
|
||||
Reference in New Issue
Block a user