Show post dates

This commit is contained in:
Oliver Davies 2025-08-21 00:28:10 +01:00
parent 763bbbcd3a
commit be69398931

View file

@ -5,7 +5,9 @@ draft: true
---
<ul>
{% for post in data.posts %}
<li><a href="{{ post.url|trim('/', 'right') }}">{{ post.title }}</a></li>
{% for post in data.posts|sort((a, b) => b.date <=> a.date) %}
<li>
<a href="{{ post.url|trim('/', 'right') }}">{{ post.title }}</a> - {{ post.date|date('jS F Y') }}
</li>
{% endfor %}
</ul>