diff --git a/src/Webfan/App/Frdlweb/CMS.php b/src/Webfan/App/Frdlweb/CMS.php index f224124..d47bebb 100644 --- a/src/Webfan/App/Frdlweb/CMS.php +++ b/src/Webfan/App/Frdlweb/CMS.php @@ -135,11 +135,11 @@ protected function mustache_substitute($text, $content_variable) { protected function parseFrontmatter(&$text_md) { - $text_md = str_replace('+++', '---', $text_md); +// $text_md = str_replace('+++', '---', $text_md); - if (strncmp($text_md, "---", 3) === 0) { + if (strncmp($text_md, "+++", 3) === 0) { // TOML format, but only partly supported - $endpos = strpos($text_md, '---', 3); + $endpos = strpos($text_md, '+++', 3); $frontmatter = trim(substr($text_md, 3, $endpos - 3)); $text_md = substr($text_md, $endpos + 3);