Always return HashWithIndifferentAccess from frontmatter data
This commit is contained in:
parent
3356153d55
commit
7ad0f51d1a
|
@ -115,15 +115,13 @@ module Middleman::CoreExtensions
|
|||
|
||||
if result = parse_yaml_front_matter(content)
|
||||
data, content = result
|
||||
data = ::Middleman::Util.recursively_enhance(data).freeze
|
||||
elsif result = parse_json_front_matter(content)
|
||||
data, content = result
|
||||
data = ::Middleman::Util.recursively_enhance(data).freeze
|
||||
else
|
||||
data = {}
|
||||
end
|
||||
|
||||
[data, content]
|
||||
[::Middleman::Util.recursively_enhance(data).freeze, content]
|
||||
end
|
||||
|
||||
def normalize_path(path)
|
||||
|
|
Loading…
Reference in a new issue