Fixed bug with frontmatter being killed when in Expert Mode #1345

This commit is contained in:
Andy Miller
2018-03-08 18:07:07 -07:00
parent 860ef9616d
commit c15fe282da
2 changed files with 3 additions and 3 deletions

View File

@@ -1841,9 +1841,8 @@ class AdminController extends AdminBaseController
if (isset($input['frontmatter']) && isset($input['content'])) {
$page->raw("---\n" . (string)$input['frontmatter'] . "\n---\n" . (string)$input['content']);
unset($input['content']);
}
if (isset($input['header'])) {
// Handle header normally
} elseif (isset($input['header'])) {
$header = $input['header'];
foreach ($header as $key => $value) {