diff --git a/middleman-core/lib/middleman-core/core_extensions/front_matter.rb b/middleman-core/lib/middleman-core/core_extensions/front_matter.rb index 501c899a..06514acd 100644 --- a/middleman-core/lib/middleman-core/core_extensions/front_matter.rb +++ b/middleman-core/lib/middleman-core/core_extensions/front_matter.rb @@ -97,7 +97,8 @@ module Middleman::CoreExtensions content = content.sub(yaml_regex, "") begin - data = YAML.load($1).symbolize_keys + data = YAML.load($1) || {} + data = data.symbolize_keys rescue *YAML_ERRORS => e logger.error "YAML Exception: #{e.message}" return false