change title to slug

This commit is contained in:
Andy Miller
2015-08-14 22:16:40 -06:00
parent ee63192512
commit 6315004a24

View File

@@ -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();