mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-31 01:38:24 -05:00
get multiline yaml frontmatter
This commit is contained in:
@@ -8,7 +8,7 @@ module AutoBlog
|
||||
def read_yaml(base, name)
|
||||
self.content = File.read(File.join(base, name))
|
||||
|
||||
if self.content =~ /^(---\n.*?)\n---\n/
|
||||
if self.content =~ /^(---\n.*?)\n---\n/m
|
||||
self.content = self.content[($1.size + 5)..-1]
|
||||
|
||||
self.data = YAML.load($1)
|
||||
|
||||
Reference in New Issue
Block a user