docs: Update _data in "Directory structure"

Add in references to _data format and extension options of .csv, .json,
etc., consistent with _docs/datafiles.md

Signed-off-by: Parker Moore <parkrmoore@gmail.com>
This commit is contained in:
jaybe@jekyll 2015-08-11 17:56:35 -05:00 committed by Parker Moore
parent 1c767febe5
commit 4c1427c400
1 changed files with 6 additions and 5 deletions

View File

@ -133,11 +133,12 @@ An overview of what each of these does:
<p>
Well-formatted site data should be placed here. The jekyll engine
will autoload all yaml files (ends with
<code>.yml</code> or <code>.yaml</code>) in this directory. If
there's a file <code>members.yml</code> under the directory,
then you can access contents of the file
through <code>site.data.members</code>.
will autoload all YAML files in this directory (using either the
<code>.yml</code>, <code>.yaml</code>, <code>.json</code> or
<code>.csv</code> formats and extensions) and they will be
accessible via `site.data`. If there's a file
<code>members.yml</code> under the directory, then you can access
contents of the file through <code>site.data.members</code>.
</p>
</td>