summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorFrancesco <tomaselli.fr@gmail.com>2024-06-02 11:44:18 +0200
committerFrancesco <tomaselli.fr@gmail.com>2024-06-02 11:44:18 +0200
commit2b7d5972a15de1582a3b218045a40ef4034d555a (patch)
tree1247ea8a4b9af9a24dd79f1fcc4f451d7979fc99 /layouts/_default
parentb2400c51451146fecca30ad1d8b710ebe70a0dfb (diff)
Fixed tags display on posts
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html5
1 files changed, 2 insertions, 3 deletions
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 }}
<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 }}