fix: sort news articles per file name
This commit is contained in:
parent
daaf65a7c2
commit
da95099203
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue