TECH
2013.05.23
Jekyllのお勉強 -YAML部分と記事本文を分離する正規表現-
JekyllのYAML部分と記事本文を分離していると思われる正規表現を確認する。 正規表現 /\A(---\s*\n.*?\n?)^(---\s*$\n?)/m こんな感じらしい # Read the YAML frontmatter. # # base - The String path to the dir containing the file. # name - The String …