1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-12-11 19:40:10 +01:00
gojekyll/example/data.md

37 lines
607 B
Markdown
Raw Normal View History

2017-07-14 21:24:26 +02:00
---
---
## YAML data
2017-08-20 23:33:04 +02:00
{% assign data = site.data.file_data %}
<table>
{% for k in data %}
<tr><td>{{ k[0] }}</td><td>{{ k[1] }}</td>
{% endfor %}
</table>
2017-07-14 21:24:26 +02:00
## JSON data
2017-08-20 23:33:04 +02:00
{% assign data = site.data.json_data %}
<table>
{% for k in data %}
<tr><td>{{ k[0] }}</td><td>{{ k[1] }}</td>
{% endfor %}
</table>
2017-07-14 21:24:26 +02:00
## 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>