mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 17:28:29 -05:00
Merge pull request #2310 from jekyll/fix-get-cwd-error
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user