Merge pull request #36 from Jiogo18/main-fork

fix: tags URL with integers
This commit is contained in:
Mirus
2025-02-17 10:07:54 +02:00
committed by GitHub
5 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,7 @@
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}">
#<a href="{{ (urls.JoinPath "tags" (urlize .) "/") | absLangURL }}">
{{- . -}}
</a>&nbsp;
{{ end }}

View File

@@ -26,7 +26,7 @@
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}">
#<a href="{{ (urls.JoinPath "tags" (urlize .) "/") | absLangURL }}">
{{- . -}}
</a>&nbsp;
{{ end }}

View File

@@ -25,7 +25,7 @@
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a>&nbsp;
#<a href="{{ (urls.JoinPath "tags" (urlize .) "/") | absLangURL }}">{{ . }}</a>&nbsp;
{{ end }}
</span>
{{ end }}

View File

@@ -25,7 +25,7 @@
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}">
#<a href="{{ (urls.JoinPath "tags" (urlize .) "/") | absLangURL }}">
{{- . -}}
</a>&nbsp;
{{ end }}

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="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a>&nbsp;
#<a href="{{ (urls.JoinPath "tags" (urlize .) "/") | absLangURL }}">{{ . }}</a>&nbsp;
{{ end }}
</span>
{{ end }}