lowmanio.co.uk title image

Articles with the tag: tags

Blog tags in Python

Wed, 29 Jul 2009 05:10PM

Creating the blog tags for this website was a bit tricky because I wasn't sure how to make the tags have different sizes according to their significance. I started off with 5 spans and ordered the tags in terms of frequency and divided them equally into the spans. However tags are not evenly distributed, so instead I calculated the normalized weight of the tag according to the others, and made the font size a percentage of that.

Read full article