parent
d8d1feec71
commit
58368cdacc
|
@ -8,6 +8,7 @@ module Jekyll
|
||||||
@site = site
|
@site = site
|
||||||
@content = {}
|
@content = {}
|
||||||
@entry_filter = EntryFilter.new(site)
|
@entry_filter = EntryFilter.new(site)
|
||||||
|
@source_dir = site.in_source_dir("/")
|
||||||
end
|
end
|
||||||
|
|
||||||
# Read all the files in <dir> and adds them to @content
|
# Read all the files in <dir> and adds them to @content
|
||||||
|
@ -53,6 +54,8 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns the contents of the data file.
|
# Returns the contents of the data file.
|
||||||
def read_data_file(path)
|
def read_data_file(path)
|
||||||
|
Jekyll.logger.debug "Reading:", path.sub(@source_dir, "")
|
||||||
|
|
||||||
case File.extname(path).downcase
|
case File.extname(path).downcase
|
||||||
when ".csv"
|
when ".csv"
|
||||||
CSV.read(path,
|
CSV.read(path,
|
||||||
|
|
Loading…
Reference in New Issue