Pass in options to File.open in Document.

This commit is contained in:
Parker Moore 2014-08-10 16:23:29 -04:00
parent 68fb130fd0
commit 9b3ccee3dd
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ module Jekyll
unless defaults.empty?
@data = defaults
end
@content = File.open(path, "rb:UTF-8") { |f| f.read }
@content = File.open(path, "rb", merged_file_read_opts(opts)) { |f| f.read }
if content =~ /\A(---\s*\n.*?\n?)^(---\s*$\n?)/m
@content = $POSTMATCH
data_file = SafeYAML.load($1)