Add tag listings
This commit is contained in:
1 parent
eb62bfd1c9
commit
53707bb085
6 files changed
+175
-94
No files matched your search
@@ -0,0 +1,25 @@
|
||||
---
|
||||
title: Blog
|
||||
layout: base.njk
|
||||
pagination:
|
||||
data: tags
|
||||
size: 1
|
||||
alias: tag
|
||||
eleventyComputed:
|
||||
permalink: "/post/tag/{{ tag.slug }}/"
|
||||
---
|
||||
|
||||
<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>
|
||||
Reference in new issue
Block a user