Add Site#in_dest_dir
This commit is contained in:
parent
7e1cc4b684
commit
3a3be7e5a7
|
@ -98,6 +98,13 @@ module Jekyll
|
||||||
Jekyll.sanitized_path(source, path)
|
Jekyll.sanitized_path(source, path)
|
||||||
end
|
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.
|
# 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 set, a new instance is created for each item in the collection.
|
||||||
# If config['collections'] is not set, a new hash is returned.
|
# If config['collections'] is not set, a new hash is returned.
|
||||||
|
|
Loading…
Reference in New Issue