The whitelist should be an array (not a file)
Default to `[]` if the key’s value is falsey
This commit is contained in:
parent
8d898dafde
commit
5c9f9a4de8
|
@ -106,7 +106,7 @@ module Jekyll
|
|||
|
||||
def whitelist
|
||||
@whitelist ||= begin
|
||||
YAML.safe_load_file(self.config['whitelist']) || []
|
||||
Array[self.config['whitelist']].flatten || []
|
||||
rescue
|
||||
[]
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue