1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-12-03 13:17:45 +01:00
gojekyll/example/data.md
2017-08-24 12:21:38 -04:00

37 lines
607 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>
## Site data
<table>
{% for row in site.config_data %}
<tr>{% for cell in row %}<td>{{ cell }}</td>{% endfor %}</tr>
{% endfor %}
</table>