Fixed broken link on tags with spaces

Clicking the link to tag with a space would 404, this adds a hyphen
which links to the correct page.
This commit is contained in:
Sam Smith 2020-03-08 17:10:05 +00:00
parent 7273a5884c
commit ce1b32b427
No known key found for this signature in database
GPG Key ID: 34A90B823258E6EB

View File

@ -13,9 +13,9 @@
{{ if .Params.tags }}
<ul class="article-tags">
{{ range .Params.tags }}
<li><a href="{{ "tags/" | absURL }}{{ . }}">#{{ . }}</a></li>
<li><a href="{{ "tags/" | absURL }}{{ . | urlize}}">#{{ . }}</a></li>
{{ end }}
</ul>
{{ end }}
</div>
</div>
</div>