Nyxblog/_includes/postslist.njk

10 lines
564 B
Text
Raw Permalink Normal View History

{%- css %}.postlist { counter-reset: start-from {{ (postslistCounter or postslist.length) + 1 }} }{% endcss %}
<ol reversed class="postlist">
2024-11-15 16:53:23 -06:00
{%- for post in postslist | reverse %}
2023-01-23 11:37:44 -06:00
<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>
2024-11-15 16:53:23 -06:00
{%- endfor %}
2018-06-11 08:08:15 -05:00
</ol>