From 641520853afabc0085efc5c058c144732f5d2adb Mon Sep 17 00:00:00 2001 From: meaz Date: Thu, 6 Jan 2022 18:40:00 +0100 Subject: [PATCH 1/2] remove doublon and unused file --- templates/tagcloud.html.twig | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 templates/tagcloud.html.twig diff --git a/templates/tagcloud.html.twig b/templates/tagcloud.html.twig deleted file mode 100644 index db434b4..0000000 --- a/templates/tagcloud.html.twig +++ /dev/null @@ -1,27 +0,0 @@ -{% set taxlist = taxonomylist.get() %} - -{% if taxlist %} - {% set max = max(taxlist['tag']) %} - {% set threshold = 0 %} - {% if config.plugins.tagcloud.threshold is defined %} - {% set threshold = config.plugins.tagcloud.threshold %} - {% endif %} -
- {% for tax,value in taxlist['tag']|ksort %} - {% set percent = (value / max) * 100 %} - {% if percent > threshold %} - {% set class = 'largest' %} - {% if percent < 20 %} - {% set class = 'smallest' %} - {% elseif percent >= 20 and percent < 40 %} - {% set class = 'small' %} - {% elseif percent >= 40 and percent < 60 %} - {% set class = 'medium' %} - {% elseif percent >= 50 and percent < 80 %} - {% set class = 'large' %} - {% endif %} - {{ tax }} - {% endif %} - {% endfor %} -
-{% endif %} -- 2.30.2 From 30526cb2bfe2fe0f80945832ec2632ce77dabc0c Mon Sep 17 00:00:00 2001 From: meaz Date: Thu, 6 Jan 2022 18:40:16 +0100 Subject: [PATCH 2/2] fix error with links in tagcloud --- templates/partials/tagcloud.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/partials/tagcloud.html.twig b/templates/partials/tagcloud.html.twig index 1d03ebd..db434b4 100644 --- a/templates/partials/tagcloud.html.twig +++ b/templates/partials/tagcloud.html.twig @@ -20,7 +20,7 @@ {% elseif percent >= 50 and percent < 80 %} {% set class = 'large' %} {% endif %} - {{ tax }} + {{ tax }} {% endif %} {% endfor %} -- 2.30.2