diff --git a/lib/jekyll/readers/data_reader.rb b/lib/jekyll/readers/data_reader.rb index 4fa873fc..6fbc047f 100644 --- a/lib/jekyll/readers/data_reader.rb +++ b/lib/jekyll/readers/data_reader.rb @@ -8,6 +8,7 @@ module Jekyll @site = site @content = {} @entry_filter = EntryFilter.new(site) + @source_dir = site.in_source_dir("/") end # Read all the files in and adds them to @content @@ -53,6 +54,8 @@ module Jekyll # # Returns the contents of the data file. def read_data_file(path) + Jekyll.logger.debug "Reading:", path.sub(@source_dir, "") + case File.extname(path).downcase when ".csv" CSV.read(path,