Added CSV example for data-file docs
This commit is contained in:
parent
596b9e0785
commit
3014fbd344
|
@ -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).
|
||||
|
||||
|
|
Loading…
Reference in New Issue