Fix the way front matter is handled, fixes #345

This commit is contained in:
Stéphane Goetz
2016-07-28 00:14:26 +02:00
parent bed4d204ca
commit b090571e4b
7 changed files with 143 additions and 93 deletions

View File

@ -0,0 +1,18 @@
To customize your pages even further, you can add a Front Matter to your files.
Front Matter is a block you add at the top of your file and looks like this:
---
title: Hallo Welt
date: 12th December 1984
---
## Changing the title
The only implemented customization right now is the override of the title.
If your file is named "Hello_World_de.md" and your front matter is the one displayed above, you will get a page named "Hallo Welt"
## For Developers
You can then access this information in each `Content` with `$content->getAttributes()`

View File

@ -1,5 +1,6 @@
---
title: Hallo Welt
date: 12th December 1984
-------
---
This is a page which has attributes and a overriden Title