fix: tags url regression with backslash

Fix a regression with the case `1\2` in the previous commit.

Trailing slash is required, so `1%5C2` is not converted to `1/2`.
This commit is contained in:
Jiogo18
2025-02-16 16:09:42 -05:00
parent fbad744c03
commit fcb047ac37
5 changed files with 5 additions and 5 deletions

View File

@@ -63,7 +63,7 @@ HERE INSERT ANY CUSTOM <script/> or <style/>
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ (urls.JoinPath "tags" (urlize .)) | absLangURL }}">{{ . }}</a>&nbsp;
#<a href="{{ (urls.JoinPath "tags" (urlize .) "/") | absLangURL }}">{{ . }}</a>&nbsp;
{{ end }}
</span>
{{ end }}