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>
|
<ul>
|
||||||
{% for post in data.posts %}
|
{% for post in data.posts|sort((a, b) => b.date <=> a.date) %}
|
||||||
<li><a href="{{ post.url|trim('/', 'right') }}">{{ post.title }}</a></li>
|
<li>
|
||||||
|
<a href="{{ post.url|trim('/', 'right') }}">{{ post.title }}</a> - {{ post.date|date('jS F Y') }}
|
||||||
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue