mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
change title to slug
This commit is contained in:
parent
ee63192512
commit
6315004a24
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user