Skip to content

pmclanahan/wintersmith-yaml-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wintersmith-yaml-page

Just like JSON pages for Wintersmith, this allows you to specify just metadata in YAML files and it will produce a page.

Why?

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.

Installing

Install using npm:

npm install --save wintersmith-yaml-page

and add wintersmith-yaml-page to your config.json

{
  "plugins": [
    "wintersmith-yaml-page"
  ]
}

Usage

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

Author

© 2015 Paul McLanahan http://pmac.io

License

Released under the MIT License.