Nikola Feature-by-request: tag cloud!
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:
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.
It's probably rather "easy" to make it use any of these instead of tagCanvas if anyone is so inclined.
Really, really happy now. The raw HTML, I see from the source, but Nikola master doesn't yet contain the code to create the JSON file, right?
Looks like I forgot to push it (duh!). I seem to be unable to push it right now on 2G, will try again as soon as connectivity improves a little.
It's ok, take your time.
Looks like it got through now :-)
There's error so cloud tag broken:
"Uncaught ReferenceError: jQuery is not defined" in jquery.tagcanvas.min.js
That usually means the order of loading the .js files is wrong and it's loading tagcanvas before jquery :-(