Fixed tags display on posts

This commit is contained in:
Francesco 2024-06-02 11:44:18 +02:00
parent c46280ea36
commit 9c16b36696

View file

@ -35,19 +35,18 @@
{{ if .Param "showTags" }}
{{ $taxonomy := "tags" }}
{{ with .Param $taxonomy }}
{{ $last := sub (. | len) 1 }}
<div class="single-tags">
{{ range $index, $tag := . }}
{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}}
<span>
<a href="{{ .Permalink }}">#{{ $tag | urlize }}</a>
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
</span>
{{ end }}
{{ end }}
</div>
{{ end }}
{{ end }}