Merge pull request #378 from bhollis/frontmatter
Properly handle pages with no frontmatter
This commit is contained in:
commit
163270c5d0
|
@ -184,7 +184,7 @@ module Middleman::CoreExtensions::FrontMatter
|
|||
if @local_data.has_key?(path.to_s)
|
||||
@local_data[path.to_s]
|
||||
else
|
||||
{}.freeze
|
||||
[ ::Middleman::Util.recursively_enhance({}).freeze, nil ]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue