volpe/tags.njk

27 lines
No EOL
658 B
Text
Raw Blame History

---
pagination:
data: collections.postsByTag
size: 1
alias: tag
addAllPagesToCollections: true
permalink: /tags/{{ tag }}/
layout: base.njk
---
<h1>Posts tagged "#{{ collections.postsByTag[tag].name }}"</h1>
<ul class="post-list">
{% for post in collections.postsByTag[tag].posts %}
<li>
<a href="{{ post.url }}" class="post-card">
<h2>{{ post.data.title }}</h2>
<time datetime="{{ post.date | dateTimeFormat }}">{{ post.date | dateTimeFormat }}</time>
{% if post.data.description %}
<p>{{ post.data.description }}</p>
{% endif %}
</a>
</li>
{% endfor %}
</ul>
<p><a href="/tags/"><3E> All tags</a></p>