Create a simple post list
This commit is contained in:
parent
651753091c
commit
53d8aa9054
9
src/_includes/partials/posts-light.njk
Normal file
9
src/_includes/partials/posts-light.njk
Normal 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 %}
|
||||||
Loading…
Reference in a new issue