Show post dates
This commit is contained in:
parent
763bbbcd3a
commit
be69398931
1 changed files with 4 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue