Okay, okay, I’m going to rant. Please bear with me.
Continuing on with my venture towards the completion of a project for which there are less than four days left, I can not afford to waste much time. Today, however, I was forced to. Why? Blogger. As I’ve said before, it’s a pretty powerful system, but dear lord can it be clunky sometimes!
A while ago, you may have started noticing other “blogspot” addresses pop up, namely ones with an extension (.nl, .co.uk, .se, you name it) corresponding to the region you live in. While at worst a small annoyance to most users, this change has caused me to waste half my day messing around with something that wasn’t meant to function.
In Blogger templates, you can use conditional tags, which are basically Blogger’s custom if-statements which you can use in your HTML code. One of the reasons to use this, is to display specific content only on a specific page. I was trying to do just that. But nope, the recent change made a certain variable pretty much useless.
Now kids, remember. If you ever see “blog.url” mentioned anywhere, replace it with “blog.canonicalUrl”. Also you may want to make sure you’re using the .blogspot.com address if you’re going to compare it to the canonical URL. That’s how that stuff works, pal.
I’ll probably do some more detailed how-to thingamabobs once I’ve got that still not very secret project launched.