HELYX-OS/_includes/list-collection
2016-01-20 14:39:48 -06:00

20 lines
567 B
Text

{% comment %}
*
* This include lets you loop through a collection to list
* all entries in that collection.
*
* If you set »published: false« in front matter of a collection page
* the page gots filtered out via unless
*
* Example: {% include list-collection ollection='wordpress' %}
*
{% endcomment %}
<ul class="side-nav">
{% for page in site.[include.collection] %}
{% unless page.published == false %}
<li><a href="{{ site.url }}{{ page.url }}">{{ page.title }}</a></li>
{% endunless %}
{% endfor %}
<li>&nbsp;</li>
</ul>