🐛 Fixed the tags link 404 in post footer.

This commit is contained in:
elkan1788 2024-08-12 21:26:02 +08:00
parent f92118257a
commit ebd38a18ae
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@
<div class="tag-cloud-tags"> <div class="tag-cloud-tags">
{{ $randNums := (seq 10) }} {{ $randNums := (seq 10) }}
{{- range $name, $items := $tags }} {{- range $name, $items := $tags }}
<a class="tag-cloud-{{ index (shuffle $randNums) 0 }}" href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}/">{{ .Page.Title }} <a class="tag-cloud-{{ index (shuffle $randNums) 0 }}" href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}/">{{ .Page.Title }}
<span class="tag-list-count"> <span class="tag-list-count">
<sup>({{ len $items }})</sup> <sup>({{ len $items }})</sup>
</span> </span>

View File

@ -1,7 +1,7 @@
{{ with .Params.tags }} {{ with .Params.tags }}
<div class="post-tags"> <div class="post-tags">
{{ range . }} {{ range . }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize | lower }}"> <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}/">
{{ . }} {{ . }}
</a> </a>
{{ end }} {{ end }}