Add Site#in_source_dir

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

View File

@ -91,6 +91,13 @@ module Jekyll
end
end
# Public: Prefix a given path with the source directory.
#
# Returns a path which is prefixed with the source directory.
def in_source_dir(path)
Jekyll.sanitized_path(source, 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.