1
0
mirror of https://github.com/danog/gojekyll.git synced 2025-01-23 02:21:16 +01:00
gojekyll/example/collections.html
2017-08-16 16:11:29 -04:00

38 lines
1.1 KiB
HTML

---
---
<h1>Collections</h1>
{% for c in site.collections %}
<h2> {{ c.label }}</h2>
<table>
{% for k in c %}{% if k != 'docs' %}
<tr><th style="text-align: left; vertical-align: top">{{k}}</th><td>{{c[k]}}</td></tr>
{% endif %}{% endfor %}
<tr><th style="text-align: left; vertical-align: top">docs</th><td>
<ul>
{% for p in c.docs %}
<li>{{ p.path }}
<table>
{% for k in p %}
<tr>
<th style="text-align: left; vertical-align: top">{{k}}</th>
<td><pre>{{p[k]}}</pre></td>
</tr>
{% endfor %}
<!-- <tr>
<th style="text-align: left; vertical-align: top">content</th>
<td><pre>{{p.content | escape}}</pre></td>
</tr>
<tr>
<th style="text-align: left; vertical-align: top">excerpt</th>
<td><pre>{{p.excerpt | escape}}</pre></td>
</tr> -->
</table>
</li>
{% endfor %}
</ul>
</td></tr>
</table>
{% endfor %}