From 507523aeb97b9f7439dcccf6ccce20338c43a49a Mon Sep 17 00:00:00 2001 From: George Cushen Date: Tue, 7 May 2019 22:55:02 +0100 Subject: [PATCH] fix(widget): Hugo 0.55 broke display of taxonomy term names (e.g. tags) Prior to this update, Hugo began displaying urlized tags like `deep-learning` rather than `Deep Learning` in the Tag Cloud widget and the list_tags/categories shortcodes. Fix #1072 --- layouts/partials/widgets/tag_cloud.html | 2 +- layouts/shortcodes/list_categories.html | 4 ++-- layouts/shortcodes/list_tags.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/widgets/tag_cloud.html b/layouts/partials/widgets/tag_cloud.html index 2306b088..3b96a006 100644 --- a/layouts/partials/widgets/tag_cloud.html +++ b/layouts/partials/widgets/tag_cloud.html @@ -24,7 +24,7 @@ {{ $tagCount := len $taxonomy.Pages }} {{ $weight := div (sub (math.Log $tagCount) (math.Log $min)) (sub (math.Log $max) (math.Log $min)) }} {{ $fontSize := add $fontSmall (mul (sub $fontBig $fontSmall) $weight) }} - {{ $name }} + {{ .Page.Title }} {{ end }} {{ end }} diff --git a/layouts/shortcodes/list_categories.html b/layouts/shortcodes/list_categories.html index 3e8a7b8a..7bbf986a 100644 --- a/layouts/shortcodes/list_categories.html +++ b/layouts/shortcodes/list_categories.html @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/layouts/shortcodes/list_tags.html b/layouts/shortcodes/list_tags.html index 3e036521..43848128 100644 --- a/layouts/shortcodes/list_tags.html +++ b/layouts/shortcodes/list_tags.html @@ -1,5 +1,5 @@ \ No newline at end of file