From b2a1afd744f84a459934043d80548dd1b0a34365 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Fri, 18 Sep 2020 10:58:38 +0200 Subject: [PATCH] feat(tag cloud): add support for custom taxonomy link --- layouts/partials/widget/tag-cloud.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/layouts/partials/widget/tag-cloud.html b/layouts/partials/widget/tag-cloud.html index 1fa8efe..a29b382 100644 --- a/layouts/partials/widget/tag-cloud.html +++ b/layouts/partials/widget/tag-cloud.html @@ -8,9 +8,10 @@
{{ range first .Site.Params.widgets.tagCloud.limit $tags }} - - {{ .Term | humanize }} - + {{ $term := $.Site.GetPage (printf "/tags/%s" .Term) }} + + {{ $term.Title | humanize }} + {{ end }}
\ No newline at end of file