--- layout: archive --- {{ content }} {% assign sortedPosts = collections.posts | group_by: "date" %} {{ sortedPosts | inspect }} {% comment %} {% assign entries_layout = page.entries_layout | default: 'list' %} {% assign postsByYear = site.posts | where_exp: "item", "item.hidden != true" | group_by_exp: 'post', 'post.date | date: "%Y"' %} {% for year in postsByYear %}

{{ year.name }}

{% for post in year.items %} {% include archive-single.html type=entries_layout %} {% endfor %}
{{ ui-text[site.locale].back_to_top | default: 'Back to Top' }} ↑
{% endfor %} {% endcomment %}