Added CSV example for data-file docs

This commit is contained in:
Niclas Darville 2014-11-13 16:04:28 +01:00
parent 596b9e0785
commit 3014fbd344
1 changed files with 9 additions and 0 deletions

View File

@ -44,6 +44,15 @@ In `_data/members.yml`:
github: liufengyun
{% endhighlight %}
Or `_data/members.csv`:
{% highlight csv %}
name,github
Tom Preston-Werner,mojombo
Parker Moore,parkr
Liu Fengyun,liufengyun
{% endhighlight %}
This data can be accessed via `site.data.members` (notice that the filename
determines the variable name).