convertible: abort with an error if Page/Post#data isn't a hash.
when the default_proc was being assigned, it failed if it wasn't a Hash. We expect data to be a Hash everywhere, so let's freak out if it isn't after reading and applying the fallback. Fixes #3643.
This commit is contained in:
parent
279fb6af11
commit
4b108df3ab
|
@ -56,6 +56,10 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
self.data ||= {}
|
self.data ||= {}
|
||||||
|
|
||||||
|
unless self.data.is_a?(Hash)
|
||||||
|
Jekyll.logger.abort_with "Fatal:", "Invalid YAML front matter in #{File.join(base, name)}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Transform the contents based on the content type.
|
# Transform the contents based on the content type.
|
||||||
|
|
Loading…
Reference in New Issue