Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jpravetz/jekyll into jpra…
Browse files Browse the repository at this point in the history
…vetz-master
  • Loading branch information
mojombo committed Jan 22, 2012
2 parents d36a106 + 9a3429d commit 574e933
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/jekyll/convertible.rb
Expand Up @@ -26,14 +26,13 @@ def to_s
def read_yaml(base, name)
self.content = File.read(File.join(base, name))

if self.content =~ /^(---\s*\n.*?\n?)^(---\s*$\n?)/m
self.content = $POSTMATCH

begin
begin
if self.content =~ /^(---\s*\n.*?\n?)^(---\s*$\n?)/m
self.content = $POSTMATCH
self.data = YAML.load($1)
rescue => e
puts "YAML Exception reading #{name}: #{e.message}"
end
rescue => e
puts "YAML Exception reading #{name}: #{e.message}"
end

self.data ||= {}
Expand Down

0 comments on commit 574e933

Please sign in to comment.