The whitelist should be an array (not a file)

Default to `[]` if the key’s value is falsey
This commit is contained in:
Parker Moore 2013-12-06 00:23:22 -05:00
parent 8d898dafde
commit 5c9f9a4de8
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ module Jekyll
def whitelist
@whitelist ||= begin
YAML.safe_load_file(self.config['whitelist']) || []
Array[self.config['whitelist']].flatten || []
rescue
[]
end