From 5e105d4bab06702b794760ad8ce237e7bc7fb98e Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 1 Jul 2022 22:27:47 +0100 Subject: [PATCH] fix: deprecation error on blog page --- source/_pages/blog.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_pages/blog.html.twig b/source/_pages/blog.html.twig index daf5f551..08a4c0fa 100644 --- a/source/_pages/blog.html.twig +++ b/source/_pages/blog.html.twig @@ -9,7 +9,7 @@ intro_text: |
- {% 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 %}