mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 09:18:11 -05:00
The whitelist should be an array (not a file)
Default to `[]` if the key’s value is falsey
This commit is contained in:
@@ -106,7 +106,7 @@ module Jekyll
|
||||
|
||||
def whitelist
|
||||
@whitelist ||= begin
|
||||
YAML.safe_load_file(self.config['whitelist']) || []
|
||||
Array[self.config['whitelist']].flatten || []
|
||||
rescue
|
||||
[]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user