Open mejedi opened 3 years ago
If a tag with spaces is assigned to a post, it's not rendered. A fix
index 3ab8030..881283a 100644 --- a/themes/codex/layouts/partials/tags.html +++ b/themes/codex/layouts/partials/tags.html @@ -2,7 +2,7 @@ {{ with .Param $taxo }} <ul class="tags__list"> {{ range $index, $tag := . }} - {{ with $.Site.GetPage (printf "/%s/%s" $taxo $tag) -}} + {{ with $.Site.GetPage (printf "/%s/%s" $taxo (urlize $tag)) -}} <li class="tag__item"> <a class="tag__link" href="{{ .Permalink }}">{{ $tag }}</a> </li>
If a tag with spaces is assigned to a post, it's not rendered. A fix