From d1d0ef7b4156c969284729515d3ad7f201da623b Mon Sep 17 00:00:00 2001 From: maia arson crimew Date: Tue, 31 May 2022 21:56:35 +0200 Subject: [PATCH] slugify tag links --- src/_includes/layouts/post.njk | 2 +- src/tagged.njk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_includes/layouts/post.njk b/src/_includes/layouts/post.njk index cba7f9d..ee80d5d 100644 --- a/src/_includes/layouts/post.njk +++ b/src/_includes/layouts/post.njk @@ -14,7 +14,7 @@ subhead: blog {% if tags %} in {% for tag in tags %} - {{ tag }}{% if not loop.last %}, {% endif %} + {{ tag }}{% if not loop.last %}, {% endif %} {% endfor %} {% endif %} diff --git a/src/tagged.njk b/src/tagged.njk index 446c2d1..2831e86 100644 --- a/src/tagged.njk +++ b/src/tagged.njk @@ -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 %}