An Extra Day to Revamp the Old Blog
Why? No one Reads Blogs
I don’t know, I don’t even average 1 post a year. Let me have my fun.
What changed?
I switched to Hugo on GitLab. Wordpress feels like overkill and it mysteriously stopped working.
The hard part was ensuring redirects to old projects worked. Okay “projects” is ambitious, “project” is correct. The only one that matters is the link from xkcd 1190 to geekwagon.net/projects/xkcd1190.
I made some minor changes to the original project so it can be served from GitHub pages.
It was kind of fun to go back to a 10+ year old project and see how terrible it
was. The fact it worked at all was because of the other contributors. I am still
grateful for them. The changes are on their own branch, maybe next leap day they
can be merged into main
.
It was easy to setup a redirect in Hugo, but straight forward instructions where hard to find. This is what I did:
-
Create a file in this project’s root
layouts/redirect/single.html
, and fill it with this:<html> <head> <meta http-equiv="refresh" content="0; url={{ .Params.redirect_url }}"> </head> <body>This should redirect to {{ .Params.redirect_url }}</body> </html>
Thanks for the clue Mr. Hugo.
-
Create a page at
content/projects/xkcd1190/index.md
, and fill it with this:--- title: xkcd 1190 redirect redirect_url: https://deplicator.github.io/xkcd-time-at-your-pace/ type: redirect menus: none ---
-
Finally, to get it to build those pages, I had t0 rename
content/projects/index.md
tocontent/projects/_index.md
.This was the tricky bit for me. Changing the md file built the html counterpart, but deleting the
public
directory then rebuilding (like how the GitLab pipeline does it) subpages of project wouldn’t show up.It’s explained here.
What does “Sharing with whoever shows up” mean?
I blame Cat from Red Dwarf.
It used to be “Sharing what I learn with whoever shows up”, but I wanted to shorten it. This is the first time I’ve used AI for real.
The featured image was also created with ai with the prompt:
Calendar zoomed in on February 29th circled in red
This post was even written with Codeium turned on and experimental markdown support enabled. It did automagically make some of that link to Codium, which was fun to correct.
I’m not as worried about AI as most people.