From c2ffa538ad00b0ec224b9b8b1a7b5225e5d11842 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Thu, 4 Apr 2013 23:22:38 -0700 Subject: [PATCH] Undo my previous change, apparently it is no good --- .../lib/middleman-core/core_extensions/front_matter.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 f147b14e..d84da600 100644 --- a/middleman-core/lib/middleman-core/core_extensions/front_matter.rb +++ b/middleman-core/lib/middleman-core/core_extensions/front_matter.rb @@ -89,9 +89,7 @@ module Middleman::CoreExtensions content = content.sub(yaml_regex, "") begin - data = YAML.load($1) - return false unless data - data.symbolize_keys + data = YAML.load($1).symbolize_keys rescue *YAML_ERRORS => e logger.error "YAML Exception: #{e.message}" return false