mirror of
https://github.com/hacks-guide/minimal-mistakes.git
synced 2024-11-24 09:19:52 +00:00
22 lines
628 B
HTML
22 lines
628 B
HTML
{% assign entries = site[include.collection] %}
|
|
|
|
{% if include.sort_by == 'title' %}
|
|
{% if include.sort_order == 'reverse' %}
|
|
{% assign entries = entries | sort: 'title' | reverse %}
|
|
{% else %}
|
|
{% assign entries = entries | sort: 'title' %}
|
|
{% endif %}
|
|
{% elsif include.sort_by == 'date' %}
|
|
{% if include.sort_order == 'reverse' %}
|
|
{% assign entries = entries | sort: 'date' | reverse %}
|
|
{% else %}
|
|
{% assign entries = entries | sort: 'date' %}
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{%- for post in entries -%}
|
|
{%- unless post.hidden -%}
|
|
{% include archive-single.html %}
|
|
{%- endunless -%}
|
|
{%- endfor -%}
|