This repository was archived by the owner on Nov 10, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Vivek Kumar Bansal edited this page Nov 4, 2014
·
4 revisions
Frontmatter allows page-specific variables to be included at the top of a template using the YAML or JSON format.
##Requirements
- PHP >= 5.4
##Installation
Create or update your composer.json and run composer update
{
"require": {
"vkbansal/frontmatter": "~1.1.0"
}
}or
composer require vkbansal/frontmatter:~1.1.0
##Supported Formats
###YAML
---
layout: custom
my_list:
- one
- two
- three
---
Main Title
-----
### Subtilte
Lorem ipsum......
###JSON
--- json
{
"layout": "custom",
"my_list": [
"one",
"two",
"three"
]
}
---
Main Title
-----
### Subtilte
Lorem ipsum......
The following is old format. Deprecated since v1.2, will be removed in v1.3.
;;;
{
"layout": "custom",
"my_list": [
"one",
"two",
"three"
]
}
;;;
Main Title
-----
### Subtilte
Lorem ipsum......
;;;
###API