refactor: ♻️ use reverse property instead of filter
This commit is contained in:
parent
edd194847a
commit
a4b4935561
1 changed files with 2 additions and 1 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue