forked from blek/world
1
0
Fork 0

sort the blog posts by date

This commit is contained in:
b1ek 2024-02-27 15:12:39 +10:00
parent a4c4324538
commit 27e97907d0
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
<h2>Posts for {{ year }}</h2>
<ul style='list-style:none;text-align:left;padding-left:0'>
{% for post in posts %}
{% for post in posts | sort(attribute="date") | reverse %}
<li>
<h3><a href="{{ post.permalink }}">{{ post.title }}</a></h3>
<p style='margin-bottom:0'>{{ post.description }}</p>
@ -32,4 +32,4 @@
{% endfor %}
{% endblock content %}
{% endblock content %}