slugify tag links

pull/1/head
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 %}