Create a simple post list

This commit is contained in:
TheThomaas 2023-11-23 22:09:13 +01:00
parent 651753091c
commit 53d8aa9054

View file

@ -0,0 +1,9 @@
{% if postslist %}
<ul role="list">
{% asyncEach post in postslist %}
<li>{% set definedDate = post.date %}
<a href="{{ post.url | url }}">{{ post.data.title }} ({% include "partials/date.njk" %})</a>
</li>
{% endeach %}
</ul>
{% endif %}