Skip to content

Instantly share code, notes, and snippets.

@mislav
Created December 26, 2012 13:41
Show Gist options
  • Save mislav/4380407 to your computer and use it in GitHub Desktop.
Save mislav/4380407 to your computer and use it in GitHub Desktop.
Reading JSON data in Jekyll
---
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>
@denzuko
Copy link

denzuko commented Aug 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment