Created
December 26, 2012 13:41
-
-
Save mislav/4380407 to your computer and use it in GitHub Desktop.
Reading JSON data in Jekyll
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
data: [ | |
[ "apple", "red", "round" ], | |
[ "banana", "yellow", "long" ], | |
[ "potato", "brown", "bumpy" ] | |
] | |
--- | |
<h1>Hello</h1> | |
<table> | |
{% for row in page.data %} | |
<tr> | |
{% for item in row %} | |
<td> | |
{{ item }} | |
</td> | |
{% endfor %} | |
</tr> | |
{% endfor %} | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Wolfr yes, https://jekyllrb.com/docs/datafiles/