slugify tag links

This commit is contained in:
maia arson crimew 2022-05-31 21:56:35 +02:00
parent 6613788e74
commit d1d0ef7b41
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ subhead: blog
{% if tags %}
<span>in
{% for tag in tags %}
<span class="tag"><a href="/posts/tagged/{{ tag }}/">{{ tag }}</a></span>{% if not loop.last %}, {% endif %}
<span class="tag"><a href="/posts/tagged/{{ tag | slugify }}/">{{ tag }}</a></span>{% if not loop.last %}, {% endif %}
{% endfor %}
</span>
{% endif %}

View file

@ -9,7 +9,7 @@ pagination:
filter:
- posts
addAllPagesToCollections: true
permalink: /posts/tagged/{{ tag }}/index.html
permalink: /posts/tagged/{{ tag | slugify }}/index.html
---
{% extends 'layouts/default.njk' %}
{% block main %}