dynamic collection navigation
Simple loop getting name, permalink and a number of posts for each collection type.
<ul>
{% for item in site.collections %}
<li>
<a href="/ {{ item.permalink }}" title="{{ item.label }}">
{{ item.label }} ({{ site[item.label] | size }})
</a>
</li>
{% endfor %}
</ul>
copy