Skip to content

Commit

Permalink
Update CMS.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wehowski authored Aug 21, 2022
1 parent 18d11e1 commit 5804e96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Webfan/App/Frdlweb/CMS.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5804e96

Please sign in to comment.