Pass in options to File.open in Document.
This commit is contained in:
parent
68fb130fd0
commit
9b3ccee3dd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue