Files
11ty-blog/_includes/postslist.njk
Tommy Parnell 78d7a9c549 hmm
2023-11-06 18:08:11 -05:00

9 lines
441 B
Plaintext

<ol reversed class="postlist">
{% for post in postslist %}
<li class="postlist-item{% if post.url == url %} postlist-item-active{% endif %}">
<a href="{{ post.url }}" class="postlist-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a>
<time class="postlist-date" datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate("LLLL yyyy") }}</time>
</li>
{% endfor %}
</ol>