fix taxonomy with space #164

This commit is contained in:
Dmitry Kolosov 2023-05-05 21:16:26 +02:00
parent 901df3239e
commit 9e6f53888e

View File

@ -16,7 +16,7 @@
{{ if .Params.categories }} {{ if .Params.categories }}
<ul class="post-categories"> <ul class="post-categories">
{{ range $cat_name := .Params.categories }} {{ range $cat_name := .Params.categories }}
{{ $cat := ($.Site.GetPage (printf "/categories/%s" $cat_name)) }} {{ $cat := ($.Site.GetPage (printf "/categories/%s" $cat_name | urlize )) }}
<li><a href="{{ $cat.Permalink }}">{{ $cat.Title | default $cat_name }}</a></li> <li><a href="{{ $cat.Permalink }}">{{ $cat.Title | default $cat_name }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
@ -24,7 +24,7 @@
{{ if .Params.tags }} {{ if .Params.tags }}
<ul class="post-tags"> <ul class="post-tags">
{{ range $tag_name := .Params.tags }} {{ range $tag_name := .Params.tags }}
{{ $tag := ($.Site.GetPage (printf "/tags/%s" $tag_name)) }} {{ $tag := ($.Site.GetPage (printf "/tags/%s" $tag_name | urlize )) }}
<li><a href="{{ $tag.Permalink }}">#{{ $tag.Title | default $tag_name }}</a></li> <li><a href="{{ $tag.Permalink }}">#{{ $tag.Title | default $tag_name }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
@ -32,7 +32,7 @@
{{ if .Params.authors }} {{ if .Params.authors }}
<ul class="post-authors"> <ul class="post-authors">
{{ range $author_name := .Params.authors }} {{ range $author_name := .Params.authors }}
{{ $author := ($.Site.GetPage (printf "/authors/%s" $author_name)) }} {{ $author := ($.Site.GetPage (printf "/authors/%s" $author_name | urlize )) }}
<li><a href="{{ $author.Permalink }}">@{{ $author_name }}</a></li> <li><a href="{{ $author.Permalink }}">@{{ $author_name }}</a></li>
{{ end }} {{ end }}
</ul> </ul>