--- layout: default --- {% assign collectionName = 'projects' %} {% assign c = site.collections | where:'label', collectionName | first %} {% assign count = c.categories.size %} {% if count == 1 %} {% assign projects = "one" %} {% elsif count == 2 %} {% assign projects = "two" %} {% elsif count == 3 %} {% assign projects = "three" %} {% else %} {% assign projects = "many" %} {% endif %} {{content}}
{% for category in c.categories %}

{{category}}

{% endfor %}