layout | permalink | content-type |
---|---|---|
post |
/collection/ |
eg |
{%- if page.permalink == "/collection/"-%} {% for collection in site.collections %} {%- if collection.label != "private" and collection.label != "posts" -%} {%- assign docs = "/" | append: collection.label -%}
{{ collection.label | capitalize}}
-
{%- assign documents = site[collection.label] | group_by_exp: 'item', "item.category | downcase" -%}
{% for cat in documents %}
{%- if cat.name != 'false' -%}
{{ cat.name | upcase }}
-
{% assign items = cat.items | sort: 'date' | reverse %}
{% for item in items %}
{% endfor %}