Added site reference for encoding configuration.
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
This commit is contained in:
parent
7114380da7
commit
9e1cb96a7e
|
@ -77,7 +77,7 @@ module Jekyll
|
||||||
when '.csv'
|
when '.csv'
|
||||||
CSV.read(path, {
|
CSV.read(path, {
|
||||||
:headers => true,
|
:headers => true,
|
||||||
:encoding => config['encoding']
|
:encoding => site.config['encoding']
|
||||||
}).map(&:to_hash)
|
}).map(&:to_hash)
|
||||||
else
|
else
|
||||||
SafeYAML.load_file(path)
|
SafeYAML.load_file(path)
|
||||||
|
|
Loading…
Reference in New Issue