Merge pull request #120 from chn-lee-yumi/chn-lee-yumi-fix-missing-slash

🐛 Fixed the missing "/" of the directory and tag links
This commit is contained in:
凡梦星尘 2023-10-16 10:02:39 +08:00 committed by GitHub
commit 43d403a019
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@
{{ if not (in $allSecondaryCats $primaryCategory) }} {{ if not (in $allSecondaryCats $primaryCategory) }}
<li class="category-list-item"> <li class="category-list-item">
<a class="category-list-link" href="{{ "categories/" | relURL }}{{ $primaryCategory | urlize }}"> <a class="category-list-link" href="{{ "categories/" | relURL }}{{ $primaryCategory | urlize }}/">
{{ $primaryCategory }} {{ $primaryCategory }}
<span class="category-list-count">{{ $primaryCount }}</span> <span class="category-list-count">{{ $primaryCount }}</span>
</a> </a>
@ -57,7 +57,7 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
<li class="category-children-list-item"> <li class="category-children-list-item">
<a class="category-list-link" href="{{ "categories/" | relURL }}{{ . | urlize }}"> <a class="category-list-link" href="{{ "categories/" | relURL }}{{ . | urlize }}/">
{{ . }} {{ . }}
<span class="category-list-count">{{ $secondaryCount }}</span> <span class="category-list-count">{{ $secondaryCount }}</span>
</a> </a>
@ -77,7 +77,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>