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

607 B

YAML data

{% assign data = site.data.file_data %}

{% for k in data %} {% endfor %}
{{ k[0] }}{{ k[1] }}

JSON data

{% assign data = site.data.json_data %}

{% for k in data %} {% endfor %}
{{ k[0] }}{{ k[1] }}

CSV data

{% for row in site.data.csv_data %} {% for cell in row %}{% endfor %} {% endfor %}
{{ cell }}

Site data

{% for row in site.config_data %} {% for cell in row %}{% endfor %} {% endfor %}
{{ cell }}