Added site reference for encoding configuration.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
This commit is contained in:
Martin Jorn Rogalla 2015-03-04 22:23:47 +01:00
parent 7114380da7
commit 9e1cb96a7e
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ module Jekyll
when '.csv'
CSV.read(path, {
:headers => true,
:encoding => config['encoding']
:encoding => site.config['encoding']
}).map(&:to_hash)
else
SafeYAML.load_file(path)