require newline after start of yaml header

This commit is contained in:
Ben Balter 2014-04-05 17:34:08 -04:00
parent c0358cb7b4
commit 823c863a53
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ module Jekyll
end
def has_yaml_header?(file)
"---" == File.open(file) { |fd| fd.read(3) }
"---\n" == File.open(file) { |fd| fd.read(4) }
end
def limit_posts!