www/_src/_includes/postslist.njk

13 lines
726 B
Plaintext
Raw Normal View History

2020-01-02 20:51:24 -07:00
<ol reversed class="postlist" style="counter-reset: start-from {{ (postslistCounter or postslist.length) + 1 }}">
{% for post in postslist | reverse %}
2018-09-29 22:23:38 -06:00
<li class="postlist-item{% if post.url == url %} postlist-item-active{% endif %}">
<a href="{{ post.url | 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 }}</time>
2021-03-17 15:29:07 -06:00
{% for tag in post.data.tags | filterTagList %}
{% set tagUrl %}/tags/{{ tag | slug }}/{% endset %}
<a href="{{ tagUrl | url }}" class="post-tag">{{ tag }}</a>
2018-09-29 22:23:38 -06:00
{% endfor %}
</li>
{% endfor %}
2018-06-11 07:08:15 -06:00
</ol>