urlize tag links

This commit is contained in:
Gabriele Musco 2021-04-18 09:46:22 +02:00
parent e5a1b723db
commit b04acfefee
No known key found for this signature in database
GPG Key ID: 8539FD3454380B83
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
<span></span>
<strong>Tags:</strong>
{{ range .Params.tags }}
<a href="/tags/{{ . }}">#{{ . }}</a>
<a href="/tags/{{ . | urlize }}">#{{ . }}</a>
{{ end }}
</p>
{{ end }}

View File

@ -10,7 +10,7 @@
| <!-- Pipe character as visual separator between date and tags-->
<span title="Tags"></span>
{{ range .Params.tags }}
<a href="/tags/{{ . }}">#{{ . }}</a>
<a href="/tags/{{ . | urlize }}">#{{ . }}</a>
{{ end }}
{{ end }}
</p>