Hey girl, i heard you like YAML.

This commit is contained in:
Parker Moore 2014-04-01 21:38:30 -04:00
parent 50b46d7bee
commit 08162dbb50
1 changed files with 5 additions and 1 deletions

View File

@ -181,7 +181,11 @@ module Jekyll
next if File.symlink?(path) && safe next if File.symlink?(path) && safe
key = sanitize_filename(File.basename(entry, '.*')) key = sanitize_filename(File.basename(entry, '.*'))
(self.data[key] = Jekyll::Document.new(path, { site: self, collection: data_collection })).read
doc = Jekyll::Document.new(path, { site: self, collection: data_collection })
doc.read
self.data[key] = doc.data
end end
end end