From 2b7d5972a15de1582a3b218045a40ef4034d555a Mon Sep 17 00:00:00 2001 From: Francesco Date: Sun, 2 Jun 2024 11:44:18 +0200 Subject: Fixed tags display on posts --- layouts/_default/single.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'layouts/_default') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c3c2aa2..dc391d6 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -35,19 +35,18 @@ {{ if .Param "showTags" }} {{ $taxonomy := "tags" }} - {{ with .Param $taxonomy }} - {{ $last := sub (. | len) 1 }}
{{ range $index, $tag := . }} {{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}} - #{{ $tag | urlize }} + #{{ .LinkTitle }} {{ end }} {{ end }}
+ {{ end }} {{ end }} -- cgit v1.2.3