Merge pull request #5621 from rogerogden/patch-1

Merge pull request 5621
This commit is contained in:
jekyllbot 2017-01-10 12:05:58 -08:00 committed by GitHub
commit bf33dc7f50
1 changed files with 5 additions and 5 deletions

View File

@ -7,20 +7,20 @@ module Jekyll
@entry_filter = EntryFilter.new(site)
end
# Read all the files in <source>/<dir>/_drafts and create a new Draft
# object with each one.
# Read all the files in <dir> and adds them to @content
#
# dir - The String relative path of the directory to read.
#
# Returns nothing.
# Returns @content, a Hash of the .yaml, .yml,
# .json, and .csv files in the base directory
def read(dir)
base = site.in_source_dir(dir)
read_data_to(base, @content)
@content
end
# Read and parse all yaml files under <dir> and add them to the
# <data> variable.
# Read and parse all .yaml, .yml, .json, and .csv
# files under <dir> and add them to the <data> variable.
#
# dir - The string absolute path of the directory to read.
# data - The variable to which data will be added.