lewisdale.dev/src/blog/tag.html
2023-10-18 13:59:56 +01:00

26 lines
688 B
HTML

---
title: Blog
layout: base.njk
pagination:
data: tags
size: 1
alias: tag
eleventyComputed:
permalink: "/post/tag/{{ tag.slug }}/"
feed: "/post/tag/{{ tag.slug }}/feed/"
---
<main class="wrapper-md stack-lg">
<h1>Posts tagged “{{ tag.name }}”</h1>
<ol class="stack-xl" role='list'>
{% for item in tag.posts %}
<li class="stack-xs">
<h2><a href="/post/{{ item.slug }}">{{ item.title.rendered | safe }}</a></h2>
<time class="block">{{ item.date | parseDate | dateDisplay }}</time>
{{ item.excerpt.rendered | safe }}
<a href="/post/{{ item.slug }}" class="inline-block">Read more</a>
</li>
{% endfor %}
</ol>
</main>