refactor: ♻️ use reverse property instead of filter

This commit is contained in:
Sebin Nyshkim 2024-10-14 20:26:43 +02:00
parent edd194847a
commit a4b4935561

View file

@ -8,9 +8,10 @@ pagination:
data: collections.posts
size: 10
alias: blogposts
reverse: true
---
{% for post in blogposts | reverse %}
{% for post in blogposts %}
<article class="blogpost">
<h1>{{ post.data.title }}</h1>
<aside class="not-prose space-y-4 text-base">