fix: sort news articles per file name

This commit is contained in:
Adrien Allard 2025-07-17 10:15:48 +02:00
parent daaf65a7c2
commit da95099203
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
title_picture_offset="0px",
title_color = "var(--color-primary)"
) %}
{% for news in glob("news/*.md") | map('markdown') %}
{% for news in glob("news/*.md") | sort(reverse=true, attribute='path') | map('markdown') %}
<div class="news">
<div class="news--header">
<h3 class="news--date">{{ news.meta.date }}</h3>