1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-11-27 11:34:46 +01:00
gojekyll/testdata/example/collections.md

22 lines
394 B
Markdown
Raw Normal View History

2017-07-02 18:09:15 +02:00
---
---
## Collections
<dl>
{% for c in site.collections %}
<dt> {{ c.label }}</dt>
{% for k in c %}{% if k != 'docs' %}
<dd>{{k}}={{c[k]}}
{% endif %}{% endfor %}
<dd>docs: <ul>
{% for p in c.docs %}
<li>{{ p.path }}
properties: {% for k in p %}{{k}} {% endfor %}
</li>
<pre>{{p.content | escape}}</pre>
{% endfor %}
</ul></dd>
{% endfor %}
</dl>