I won’t try to list everything, but got around to doing some general site hygiene today. I cleaned up a some invalid HTML tags, CSS styles, RSS feed issues, and so on. Mostly little quirks that I hadn’t gotten around to fixing. I realized today that I still need to move some of the redundant code into separate routines. The CMS wasn’t designed for scale and I’m still moving stuff around to make it function better. Maybe someday I’ll get around to revamping the code completely.
Lists weren’t validating correctly. I was wrapping it in a paragraph, incorrect in HTML5. In fixing that, I cleaned up the code to correct a few other issues I found. I also corrected a mistake in one of my articles where I used the wrong tag.
I’ve never been too excited about the look of my tag cloud. I have a lot of old tags that are single digits—or worse, 1. Now that I have some categories that are an order of magnitude higher, most of the fonts are tiny with little variation.
To fix the issue, I reworked the calculations. That tags are now ranked by popularity instead of just using the count. This provides a better progression to the scale which looks good, even as tags continue to grow.
Unfortunately this also equalized the tag cloud in the footer. To compensate, I added another parameter to set maximum font size. On a positive note, this allowed me size up the fonts in the tag cloud view. Overall, a positive change.
I made some minor changes today to the ZX81 web helpers. This is for the functions like listing a program, running it in an emulator, or listing the assembly code. I discovered that the canonical URL in the listing page was pointing to the wrong link. Fixing that, I decided to align the three helpers to work similar to the emulator page. You will now see the primary image, if set, a title, and a synopsis. I also added a link to the article if one exists.
Apparently I had broken my feeds. Reviewing my site in Feedly, I noticed that my RSS feeds stopped working. After some digging, I found where I’d accidentally removed the self closing tag required by XML. I had done some cleaning up of those tags over the break to make the code valid HTML5 since reverting from XHTML. Sadly, I completely missed that the RSS feeds still used XML. Funny how a single slash caused so much pain.