mirror of
https://github.com/getgrav/grav.git
synced 2025-10-26 07:56:07 +01:00
change title to slug
This commit is contained in:
@@ -213,7 +213,7 @@ class Page
|
||||
$this->frontmatter = $file->frontmatter();
|
||||
$this->header = (object)$file->header();
|
||||
} catch (ParseException $e) {
|
||||
$file->raw("---\ntitle: ".$this->folder()."\n---\n\n# Error: Invalid Frontmatter\n## ".$file->filename());
|
||||
$file->raw("---\ntitle: ".$this->slug()."\n---\n\n# Error: Invalid Frontmatter\n## ".$file->filename());
|
||||
$this->raw_content = $file->markdown();
|
||||
$this->frontmatter = $file->frontmatter();
|
||||
$this->header = (object)$file->header();
|
||||
|
||||
Reference in New Issue
Block a user