fix: deprecation error on blog page

This commit is contained in:
Oliver Davies 2022-07-01 22:27:47 +01:00
parent 07e7871c1e
commit 5e105d4bab

View file

@ -9,7 +9,7 @@ intro_text: |
<div class="mt-10">
<div class="space-y-8">
{% for post in data.posts|sort((a, b) => a.date < b.date) %}
{% for post in data.posts|sort((a, b) => b.date <=> a.date) %}
{% include 'post/post-teaser' with { post } only %}
{% endfor %}
</div>