1
0
Fork 0
This repository has been archived on 2021-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
dennogumi.org-archive/_includes/list-collection.html

20 lines
574 B
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% 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.html collection='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>