feat(tag cloud): add support for custom taxonomy link

This commit is contained in:
Jimmy Cai 2020-09-18 10:58:38 +02:00
parent d292727821
commit b2a1afd744
No known key found for this signature in database
GPG Key ID: 3EA408E527F37B18

View File

@ -8,8 +8,9 @@
<div class="tagCloud-tags">
{{ range first .Site.Params.widgets.tagCloud.limit $tags }}
<a href="{{ printf `tags/%s` (.Term | urlize) | relLangURL }}" class="font_size_{{ .Count }}">
{{ .Term | humanize }}
{{ $term := $.Site.GetPage (printf "/tags/%s" .Term) }}
<a href="{{ $term.Permalink }}" class="font_size_{{ .Count }}">
{{ $term.Title | humanize }}
</a>
{{ end }}
</div>