Include tags in the posts list

This commit is contained in:
Neil Brommer 2023-07-10 15:57:40 -07:00
parent bedb641e64
commit b1f5f39735
2 changed files with 14 additions and 1 deletions

View file

@ -14,6 +14,19 @@
{{ post.date.toLocaleDateString("en-US") }}
</dd>
</dl>
<dl class="tags">
<dt>
<svg class="icon">
<use href="/images/feather-sprite.svg#tag" />
</svg>
Tags
</dt>
{% for tag in post.data.tags %}
{% if tag != "posts" %}
<dd><a href="{{ "/posts/tags/" + (tag | slugify) | url }}">{{ tag }}</a></dd>
{% endif %}
{% endfor %}
</dl>
</div>
<p>{{ post.data.description }}</p>
</section>

View file

@ -6,7 +6,7 @@
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 2em;
column-gap: 2em;
font-size: 0.8rem;
}