tags: show tag on pages when tag has space #459

This commit is contained in:
Sören Weber 2023-02-01 08:16:16 +01:00
parent 8a85b6554a
commit 85f2e1344e
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -4,7 +4,7 @@
<div class="tags"> <div class="tags">
{{- range sort .Params.tags }} {{- range sort .Params.tags }}
{{- $tag := . }} {{- $tag := . }}
{{- with $page.Site.GetPage (printf "%s%s" ("/tags/" | relURL ) $tag ) }} {{- with $page.Site.GetPage (printf "%s%s" ("/tags/" | relURL ) ( $tag | anchorize ) ) }}
{{- $to := . }} {{- $to := . }}
<a class="tag-link" href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" $to) }}">{{ $tag }}</a> <a class="tag-link" href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" $to) }}">{{ $tag }}</a>
{{- end }} {{- end }}