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
|
data: collections.posts
|
||||||
size: 10
|
size: 10
|
||||||
alias: blogposts
|
alias: blogposts
|
||||||
|
reverse: true
|
||||||
---
|
---
|
||||||
|
|
||||||
{% for post in blogposts | reverse %}
|
{% for post in blogposts %}
|
||||||
<article class="blogpost">
|
<article class="blogpost">
|
||||||
<h1>{{ post.data.title }}</h1>
|
<h1>{{ post.data.title }}</h1>
|
||||||
<aside class="not-prose space-y-4 text-base">
|
<aside class="not-prose space-y-4 text-base">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue