Add Site#in_dest_dir

This commit is contained in:
Parker Moore 2014-08-26 23:20:34 -07:00
parent 7e1cc4b684
commit 3a3be7e5a7
1 changed files with 7 additions and 0 deletions

View File

@ -98,6 +98,13 @@ module Jekyll
Jekyll.sanitized_path(source, path)
end
# Public: Prefix a given path with the destination directory.
#
# Returns a path which is prefixed with the destination directory.
def in_dest_dir(path)
Jekyll.sanitized_path(dest, path)
end
# The list of collections and their corresponding Jekyll::Collection instances.
# If config['collections'] is set, a new instance is created for each item in the collection.
# If config['collections'] is not set, a new hash is returned.