mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 11:26:04 +01:00
New page: Add title to the frontmatter on expert mode
This commit is contained in:
@@ -398,6 +398,7 @@ class Admin
|
||||
// Found the type and header from the session.
|
||||
$data = $this->session->{$page->route()};
|
||||
$page->name($data['type'] . '.md');
|
||||
$page->frontmatter('title: ' . $data['title']);
|
||||
$page->header(['title' => $data['title']]);
|
||||
} else {
|
||||
// Find out the type by looking at the parent.
|
||||
|
||||
Reference in New Issue
Block a user