Reverse tag page post lists

This commit is contained in:
Lewis Dale 2023-12-30 16:06:29 +00:00
parent 02b39000ae
commit b3d214426c

View File

@ -14,7 +14,7 @@ eleventyComputed:
<h1>Posts tagged “{{ tag }}”</h1> <h1>Posts tagged “{{ tag }}”</h1>
<ol class="stack-xl" role='list'> <ol class="stack-xl" role='list'>
{% set posts = collections.posts | filterBy(tag) %} {% set posts = collections.posts | filterBy(tag) | reverse %}
{% for item in posts %} {% for item in posts %}
<li class="stack-xs"> <li class="stack-xs">
<h2><a href="{{ item.url }}">{{ item.data.title | safe }}</a></h2> <h2><a href="{{ item.url }}">{{ item.data.title | safe }}</a></h2>