--- author: '' category: '' date: 2012/12/27 22:31:23 description: '' link: '' priority: '' slug: nikola-feature-by-request-tag-cloud tags: python, nikola title: 'Nikola Feature-by-request: tag cloud!' type: text updated: 2012/12/27 22:31:23 url_type: '' --- I asked for feature requests for `Nikola `_ my static site generator. I got some. One was from long-time user Kay Hayen, so I just couldn't say no. He asked for tag clouds. Look: .. raw:: html

Anything in here will be replaced on browsers that support the canvas element

Cute, isn't it? And it's real, actual tag data from this very site. With links! How it's done: Nikola generates a JSON file that has the cloud data (tag name, size, link), and that's processed by JQuery and `tagCanvas `_ and ... well, it works. You have to add ``jquery.tagcanvas.min.js`` somewhere and embed a whole pile of raw HTML `(see here for details) `_ but hey, it works. Hope you are happy, Kay, you made me code **javascript**, dude ;-) It's probably rather "easy" to make it use any of `these `_ instead of tagCanvas if anyone is so inclined.