Reverse the posts

This commit is contained in:
Lewis Dale 2023-12-30 16:05:52 +00:00
parent 23f59d9576
commit 02b39000ae

View File

@ -25,7 +25,7 @@ layout: base.njk
<h2>Recent Posts</h2>
<ul class="stack-2xs" role='list'>
{% for post in collections.posts | take(3) %}
{% for post in collections.posts | reverse | take(3) %}
<li><a href="{{ post.url }}">{{ post.data.title | safe }}</a> <time datetime="{{ post.date }}">{{ post.date | dateDisplay }}</time></li>
{% endfor %}
</ul>