Merge pull request #2310 from jekyll/fix-get-cwd-error

This commit is contained in:
Parker Moore
2014-05-06 16:29:25 -04:00

View File

@@ -433,7 +433,7 @@ module Jekyll
end
def has_yaml_header?(file)
!!(File.open(file, "rb").read(5) =~ /\A---\r?\n/)
!!(File.open(file, 'rb') { |f| f.read(5) } =~ /\A---\r?\n/)
end
def limit_posts!