Just like JSON pages for Wintersmith, this allows you to specify just metadata in YAML files and it will produce a page.
I like the idea of the JSON content files built into wintersmith itself, but really dislike writing JSON by hand. I find YAML to be much easier to read and write, especially in these very simple key-value situations. If you need to pass complex types to the template context then JSON might still be the best choice, but you should be able to get pretty far with YAML.
Install using npm
:
npm install --save wintersmith-yaml-page
and add wintersmith-yaml-page
to your config.json
{
"plugins": [
"wintersmith-yaml-page"
]
}
Create a file in your content folder that has a .yml
or .yaml
extension and defines metadata in the YAML format.
template: about.jade
filename: about/index.html
© 2015 Paul McLanahan http://pmac.io
Released under the MIT License.