Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag with spaces isn't shown in post #155

Open
mejedi opened this issue Feb 7, 2021 · 0 comments
Open

Tag with spaces isn't shown in post #155

mejedi opened this issue Feb 7, 2021 · 0 comments

Comments

@mejedi
Copy link

mejedi commented Feb 7, 2021

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant