Undo my previous change, apparently it is no good
This commit is contained in:
parent
f7d1471edb
commit
c2ffa538ad
1 changed files with 1 additions and 3 deletions
|
@ -89,9 +89,7 @@ module Middleman::CoreExtensions
|
||||||
content = content.sub(yaml_regex, "")
|
content = content.sub(yaml_regex, "")
|
||||||
|
|
||||||
begin
|
begin
|
||||||
data = YAML.load($1)
|
data = YAML.load($1).symbolize_keys
|
||||||
return false unless data
|
|
||||||
data.symbolize_keys
|
|
||||||
rescue *YAML_ERRORS => e
|
rescue *YAML_ERRORS => e
|
||||||
logger.error "YAML Exception: #{e.message}"
|
logger.error "YAML Exception: #{e.message}"
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in a new issue