#Blog
72 posts tagged “Blog”
72 posts tagged “Blog”
This blog is just Hugo content and a vendored theme — no app code, nothing exciting — which is exactly the kind of repo that quietly accumulates small rot nobody notices because nothing ever actually breaks the build. Spent a session pointing Claude Code at it to find and fix that rot.
Started with a straight status check: a couple of generated CSS cache files showing as deleted (build artifacts that shouldn’t have been tracked in the first place) and a stray uncommitted edit sitting inside the ananke theme submodule from as far back as November 2024. Both restored/reverted to get back to a clean tree before touching anything else.
Having been a bit lazy in not updating my Hugo version since I started which was recently breaking one of my Github actions, I decided do do that.
This lead to an cascading update cycle.
Still a couple of deprecated warning and fixing background and social icon links to sort out but at least now running against the latest version of Hugo.
Had a great day on my blacksmith course making a Ram’s head fire poker at Adrian Wood’s Forge, I would highly recommend it.
I went back for a second course after making a dragon coat hook last year, course which was part of my 50th birthday presents.
Been trying to relearn 6502 assembly language for fun, its a lot faster and easier than the first time on actual hardware when I was a teenager.
Been using a book I picked up from eBay Discovering BBC Micro Machine Code by A.P. Stephenson
Using BeebAsm assembler on my Mac with a BBC Micro emulator, rather than build in BBC BASIC one.
You can find my code at Github https://github.com/alastairhm/beebasm
This example draws a line of zeros to Mode 7, see screenshot below.
Short code for embedding Flickr albums easily. Here demonstrated with my Inkotober 2020 album.
Short code defined like this
<a data-flickr-embed="true" data-header="true" data-footer="true"
href="{{ index .Params 1 }}"
title="{{ index .Params 0 }}">
<img src="{{ index .Params 2 }}"
width="800" height="600"
alt="{{ index .Params 0 }}">
</a><script async src="//embedr.flickr.com/assets/client-code.js" charset="utf-8"></script>
First parameter is the album title. Second parameter is the album URL. Third parameter is a URL to an image to use for the album.
Photos from recent trip to Hornsea.
Testing a Flickr shortcode I found here flickr-hugo-embed and tweaked for my own needs.
One thing I like about Hugo is how easy it is to expand its functionality with your own code.
For example was able to create a shortcode to embed Lbry.tv videos into a post in around five minutes.
First I created an empty file layouts/shortcodes/lbry.html which I pasted the basic embed code take from the share button on one of their videos.

<iframe id="lbry-iframe" width="560" height="315" src="https://lbry.tv/$/embed/this-new-fedora-powered-thinkpad-p53-is/097106eb68aebc90b33d83bb053467af942a8e20" allowfullscreen></iframe>
Then parameterized this so that the src url can be changed.