Alvan's digital garden

I Moved the Pages Around

Hey there :)

So, I moved the pages around. Apparently, in my Hugo config file, I had specified a weird URL generation format, which I never liked. I like them categorized like /blog/:year/:slug. I guess this is called taxonomy or something, not sure.

Anyway, I changed the URL template, and broke all the links to my posts on the Internet. Sure, there is not much, but still, Cool URIs never change. For the sake of following W3 rules, I made a nice 404 page for myself.

Here is a screenshot from 404 page you see if you have navigated to an old URL:

404 page screenshot

And if this is just a normal non-existing web page:

404 page of a non-existing resource

Internally, it just has a mapping of old URLs to new URLs. And little bit of JavaScript to do the redirection and the timer.

I spent solid one and a half hours on this page 😂, and I am proud of it.

#update