From a9148776a262bf8c662a0ceee84556ba43a1f282 Mon Sep 17 00:00:00 2001 From: Jiachen Yang Date: Mon, 1 Dec 2014 18:08:24 +0900 Subject: [PATCH] Expose tag count to theme template --- pelican/generators.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pelican/generators.py b/pelican/generators.py index 5122fa6d..2cb95f1a 100644 --- a/pelican/generators.py +++ b/pelican/generators.py @@ -572,7 +572,8 @@ class ArticlesGenerator(CachingGenerator): ( tag, int(math.floor(steps - (steps - 1) * math.log(count) - / (math.log(max_count)or 1))) + / (math.log(max_count)or 1))), + count ) for tag, count in tag_cloud ]