1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-12-11 20:39:40 +01:00
gojekyll/example/data.md
2017-08-20 17:33:04 -04:00

29 lines
464 B
Markdown

---
---
## YAML data
{% assign data = site.data.file_data %}
<table>
{% for k in data %}
<tr><td>{{ k[0] }}</td><td>{{ k[1] }}</td>
{% endfor %}
</table>
## JSON data
{% assign data = site.data.json_data %}
<table>
{% for k in data %}
<tr><td>{{ k[0] }}</td><td>{{ k[1] }}</td>
{% endfor %}
</table>
## CSV data
<table>
{% for row in site.data.csv_data %}
<tr>{% for cell in row %}<td>{{ cell }}</td>{% endfor %}</tr>
{% endfor %}
</table>