From d3f9da7645397d63aecade6c1a64d204ffa1350a Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Fri, 9 May 2014 10:30:36 -0400 Subject: [PATCH] document json support --- site/docs/datafiles.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/docs/datafiles.md b/site/docs/datafiles.md index 1dbe4097..fd6b0d51 100644 --- a/site/docs/datafiles.md +++ b/site/docs/datafiles.md @@ -10,7 +10,7 @@ In addition to the [built-in variables](../variables/) available from Jekyll, you can specify your own custom data that can be accessed via the [Liquid templating system](http://wiki.github.com/shopify/liquid/liquid-for-designers). -Jekyll supports loading data from [YAML](http://yaml.org/) files located in the +Jekyll supports loading data from [YAML](http://yaml.org/) and [JSON](http://www.json.org/) files located in the `_data` directory. This powerful feature allows you to avoid repetition in your templates and to @@ -22,7 +22,7 @@ Plugins/themes can also leverage Data Files to set configuration variables. As explained on the [directory structure](../structure/) page, the `_data` folder is where you can store additional data for Jekyll to use when generating -your site. These files must be YAML files (using either the `.yml` or `.yaml` +your site. These files must be YAML files (using either the `.yml`, `.yaml` or `json` extension) and they will be accessible via `site.data`. ## Example: List of members