<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wc="https://wilhelm.codes/ns/feed/1.0"><channel><title>Wilhelm Codes · Wilhelm.codes</title><link>https://wilhelm.codes/tags/wilhelm.codes/</link><description>Coder and platform engineer. Slinger of nibbles, bits and bytes. Over 25 years of professional experience as a software engineer. Love making glowing rectangles go "beep-boop".</description><generator>Hugo</generator><language>en-US</language><managingEditor>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</managingEditor><webMaster>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</webMaster><lastBuildDate>Sun, 27 Sep 2026 16:51:09 +1000</lastBuildDate><atom:link href="https://wilhelm.codes/tags/wilhelm.codes/index.xml" rel="self" type="application/rss+xml"/><item><title>Whatever you do, do not add ?sparks to the end of the URL of any page …</title><link>https://wilhelm.codes/bits/update-sparks/</link><pubDate>Sun, 27 Sep 2026 16:51:09 +1000</pubDate><author>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</author><guid>https://wilhelm.codes/bits/update-sparks/</guid><category>wilhelm.codes</category><wc:kind>bit</wc:kind><wc:bit>update</wc:bit><wc:untitled>true</wc:untitled><description>Whatever you do, do not add ?sparks to the end of the URL of any page with an activity graph. I&amp;rsquo;m pleading with you, reader. It is not at all silly and definitely NOT at all &amp;ldquo;fun&amp;rdquo;.</description><content:encoded><![CDATA[<p>Whatever you do, do <em>not</em> add <code>?sparks</code> to the end of the URL of any page with an activity graph. I&rsquo;m pleading with you, reader. It is not at all silly and <em>definitely</em> NOT at all &ldquo;fun&rdquo;.</p>
]]></content:encoded></item><item><title>I’ve been rebuilding the public landing page for the homelab this …</title><link>https://wilhelm.codes/bits/update-a-thin-layer-of-grime/</link><pubDate>Mon, 14 Sep 2026 17:15:00 +1000</pubDate><author>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</author><guid>https://wilhelm.codes/bits/update-a-thin-layer-of-grime/</guid><category>wilhelm.codes</category><category>homelab</category><category>css</category><category>design</category><wc:kind>bit</wc:kind><wc:bit>update</wc:bit><wc:untitled>true</wc:untitled><description>I&amp;rsquo;ve been rebuilding the public landing page for the homelab this weekend and somewhere in the middle of it I laid a scanline over the whole thing. It&amp;rsquo;s a single hairline that repeats itself every three pixels. It&amp;rsquo;s faint enough that the page stops looking quite so flat without you ever working out why. Then, obviously, I wanted it here too.
The lazy version is a white line at about 1.5% opacity, which is what the other page uses, because the other page is forty words of neon over black; legibility isn&amp;rsquo;t really the goal. However, this site is mostly prose, so a white line lightens the words as well as the background. I didn&amp;rsquo;t spend all that time on the reading column just to lay a haze over it.</description><content:encoded><![CDATA[<p>I&rsquo;ve been rebuilding the <a href="https://nightcity.network">public landing</a> page for the homelab this weekend and somewhere in the middle of it I laid a scanline over the whole thing. It&rsquo;s a single hairline that repeats itself every three pixels. It&rsquo;s faint enough that the page stops looking quite so flat without you ever working out why. Then, obviously, I wanted it here too.</p>
<p>The lazy version is a white line at about <code>1.5%</code> opacity, which is what the other page uses, because the other page is forty words of neon over black; legibility isn&rsquo;t really the goal. However, <em>this</em> site is mostly prose, so a white line lightens the words as well as the background. I didn&rsquo;t spend all that time on the reading column just to lay a haze over it.</p>
<p>So the grain mixes off <code>--text</code> instead of white:</p>
<div class="code-block">
  <div class="code-head">
    <span class="code-file"></span>
    <span class="code-lang">CSS</span>
  </div>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-css" data-lang="css"><span class="line"><span class="cl"><span class="nt">--grain</span><span class="o">:</span> <span class="nt">color-mix</span><span class="o">(</span><span class="nt">in</span> <span class="nt">srgb</span><span class="o">,</span> <span class="nt">var</span><span class="o">(</span><span class="nt">--text</span><span class="o">)</span> <span class="nt">1</span><span class="p">.</span><span class="nc">5</span><span class="o">%,</span> <span class="nt">transparent</span><span class="o">);</span></span></span></code></pre></div>
</div>
<p>This can be applied like so:</p>
<div class="code-block">
  <div class="code-head">
    <span class="code-file"></span>
    <span class="code-lang">CSS</span>
  </div>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-css" data-lang="css"><span class="line"><span class="cl"><span class="p">.</span><span class="nc">grain</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">  <span class="k">position</span><span class="p">:</span> <span class="kc">fixed</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">  <span class="k">inset</span><span class="p">:</span> <span class="mi">0</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">  <span class="n">pointer-events</span><span class="p">:</span> <span class="kc">none</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">  <span class="k">z-index</span><span class="p">:</span> <span class="mi">10</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">  <span class="k">background</span><span class="p">:</span> <span class="nb">repeating-linear-gradient</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="kc">to</span> <span class="kc">bottom</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nf">var</span><span class="p">(</span><span class="o">--</span><span class="n">grain</span><span class="p">)</span> <span class="mi">0</span> <span class="mi">1</span><span class="kt">px</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="kc">transparent</span> <span class="mi">1</span><span class="kt">px</span> <span class="mi">3</span><span class="kt">px</span>
</span></span><span class="line"><span class="cl">  <span class="p">);</span>
</span></span><span class="line"><span class="cl"><span class="p">}</span></span></span></code></pre></div>
</div>
<p>And finally referened like so just above the closing <code>&lt;/body&gt;</code> tag:</p>
<div class="code-block">
  <div class="code-head">
    <span class="code-file"></span>
    <span class="code-lang">HTML</span>
  </div>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">div</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;grain&#34;</span> <span class="na">aria-hidden</span><span class="o">=</span><span class="s">&#34;true&#34;</span><span class="p">&gt;&lt;/</span><span class="nt">div</span><span class="p">&gt;</span></span></span></code></pre></div>
</div>
<p>This works out great, because a colour mixed with itself gives that colour straight back. The grain physically <em>cannot</em> touch the body copy. I&rsquo;ve learned quite a few new things today!</p>
<p>As a bonus the lightbox is a <code>&lt;dialog&gt;</code> and the browser promotes a modal dialog into the top layer. This sits above every <code>z-index</code> on the page; including the one holding the grain. So a zoomed photograph comes up perfectly clean and I didn&rsquo;t have to write a rule to make that happen.</p>
<p>Whether you can see any of this depends entirely on your monitor, your colour settings and even your resolution. If you can&rsquo;t see it, it&rsquo;s working.</p>
]]></content:encoded></item><item><title>Page loads had been creeping up again, so I went looking. Turns out …</title><link>https://wilhelm.codes/bits/update-putting-the-site-on-a-diet/</link><pubDate>Fri, 11 Sep 2026 01:09:12 +1000</pubDate><author>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</author><guid>https://wilhelm.codes/bits/update-putting-the-site-on-a-diet/</guid><category>wilhelm.codes</category><category>hugo</category><category>performance</category><wc:kind>bit</wc:kind><wc:bit>update</wc:bit><wc:untitled>true</wc:untitled><description>Page loads had been creeping up again, so I went looking. Turns out I&amp;rsquo;d been quietly serving enormous screenshots. One post was pulling 5.1 MB of PNGs, and a single one of those was a 1.96 MB app screenshot sitting in a column 736 pixels wide. Oof.
The fix was mostly plumbing. My img shortcode was handing the raw src straight to the &amp;lt;img&amp;gt; tag, so Hugo never got a look in. Everything now goes through one partial that resizes to the width it actually displays at, re-encodes to WebP and emits a srcset, plus width and height so the layout stops jumping around while things load. Markdown images get the same treatment through a render hook. The awkward bit: images under static/ aren&amp;rsquo;t resources, so Hugo can&amp;rsquo;t touch them. A second mount in hugo.toml fixes that without breaking any existing URLs.</description><content:encoded><![CDATA[<p>Page loads had been creeping up again, so I went looking. Turns out I&rsquo;d been quietly serving <em>enormous</em> screenshots. One post was pulling 5.1 MB of PNGs, and a single one of those was a 1.96 MB app screenshot sitting in a column 736 pixels wide. Oof.</p>
<p>The fix was mostly plumbing. My <code>img</code> shortcode was handing the raw <code>src</code> straight to the <code>&lt;img&gt;</code> tag, so Hugo never got a look in. Everything now goes through one partial that resizes to the width it actually displays at, re-encodes to WebP and emits a <code>srcset</code>, plus <code>width</code> and <code>height</code> so the layout stops jumping around while things load. Markdown images get the same treatment through a render hook. The awkward bit: images under <code>static/</code> aren&rsquo;t resources, so Hugo can&rsquo;t touch them. A second mount in <code>hugo.toml</code> fixes that without breaking any existing URLs.</p>
<p>While I was in there I dealt with the JavaScript. Every page was carrying all seven inline scripts, even the 90-odd pages with no code blocks, no zoomable images and no locked series titles. Those three now load only where they actually do something. The two that genuinely run everywhere moved into one small fingerprinted bundle, so your browser fetches it once for the whole visit instead of re-reading it on every page. I also finally turned on HTML minification, which I&rsquo;d apparently never bothered with.</p>
<p>Where it landed:</p>
<table>
	<thead>
			<tr>
					<th>what</th>
					<th>before</th>
					<th>after</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>Images the site serves</td>
					<td>12.3 MB</td>
					<td>1.5 MB</td>
			</tr>
			<tr>
					<td>HTML over the wire, mean per page</td>
					<td>10,236 B</td>
					<td>6,671 B</td>
			</tr>
			<tr>
					<td>Worst offending post, first paint</td>
					<td>5.1 MB</td>
					<td>112 KB</td>
			</tr>
	</tbody>
</table>
<p>That last one is about 46 times smaller. Nothing changed visually, which was the whole point. The sparks still spark and the locked titles still scramble.</p>
<p>One last silly thing. I added a new short code to style &ldquo;Plant Smart&rdquo; as &ldquo;<span class="wm-plant">Plant</span>🌱<span class="wm-smart">Smart</span>&rdquo;. Fun!</p>
]]></content:encoded></item><item><title>Welp, I finally did it! I’ve moved the git repository for this site …</title><link>https://wilhelm.codes/bits/update-adios-github/</link><pubDate>Mon, 24 Aug 2026 11:00:00 +1000</pubDate><author>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</author><guid>https://wilhelm.codes/bits/update-adios-github/</guid><category>wilhelm.codes</category><category>github</category><wc:kind>bit</wc:kind><wc:bit>update</wc:bit><wc:untitled>true</wc:untitled><description>Welp, I finally did it! I&amp;rsquo;ve moved the git repository for this site from Github to the Forgejo instance in my homelab. Further, I&amp;rsquo;ve replaced Cloudflare&amp;rsquo;s build pipeline with a simple 20-line YAML file used by my Woodpecker CI server, which is also hosted in my homelab. I&amp;rsquo;m still using Wrangler to push the static assets to Cloudflare Pages and I&amp;rsquo;ll always need an external DNS provider for my domain, but you can&amp;rsquo;t reasonably self-host everything.</description><content:encoded><![CDATA[<p>Welp, I finally did it! I&rsquo;ve moved the git repository for this site from Github to the Forgejo instance in my homelab. Further, I&rsquo;ve replaced Cloudflare&rsquo;s build pipeline with a simple 20-line YAML file used by my Woodpecker CI server, which is also hosted in my homelab. I&rsquo;m still using Wrangler to push the static assets to Cloudflare Pages and I&rsquo;ll always need an external DNS provider for my domain, but you can&rsquo;t reasonably self-host <em>everything</em>.</p>
<p>It&rsquo;s nice to have <em>almost</em> full control of my little website now! And all it took was 3 attempts to get the integration right. 😅</p>
<p><img
  src="https://wilhelm.codes/bits/update-adios-github/changelog-proof_hu_6623937c7992b7c5.webp"
  srcset="/bits/update-adios-github/changelog-proof_hu_6623937c7992b7c5.webp 736w, /bits/update-adios-github/changelog-proof_hu_e96734be3e965506.webp 1104w, /bits/update-adios-github/changelog-proof_hu_375583fd984255af.webp 1472w"
  sizes="(max-width: 48rem) 100vw, 736px"
  width="736"
  height="273"
  alt="Alternative text for screen readers"
  
  loading="lazy"
  decoding="async"
/>
</p>
<p>A great note to end on for a Monday evening!</p>
]]></content:encoded></item><item><title>Some Long Overdue Demolition</title><link>https://wilhelm.codes/blog/some-long-overdue-demolition/</link><pubDate>Sun, 23 Aug 2026 00:00:00 +0000</pubDate><author>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</author><guid>https://wilhelm.codes/blog/some-long-overdue-demolition/</guid><category>hugo</category><category>css</category><category>performance</category><category>wilhelm.codes</category><wc:kind>post</wc:kind><description>Two months ago I wrote Some Long Overdue Housekeeping. A post about giving this blog a proper facelift. I untangled my Tailwind setup, modernised Hugo and taught it to drive the compiler natively and generally felt very pleased with the state of things.
So, of course just weeks later I have this burning desire to nuke it all from orbit!</description><content:encoded><![CDATA[<p>Two months ago I wrote <a href="https://wilhelm.codes/blog/some-long-overdue-housekeeping/">Some Long Overdue Housekeeping</a>. A post about giving this blog a proper facelift. I untangled my Tailwind setup, modernised Hugo and taught it to drive the compiler natively and generally felt very pleased with the state of things.</p>
<p>So, of course just weeks later I have this burning desire to nuke it all from orbit!</p>
<figure class="pull-quote">
  <span class="pull-quote-mark" aria-hidden="true"><span class="icon "><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 256 256"><g fill="currentColor"><path d="M108 72v72H40a8 8 0 0 1-8-8V72a8 8 0 0 1 8-8h60a8 8 0 0 1 8 8m108-8h-60a8 8 0 0 0-8 8v64a8 8 0 0 0 8 8h68V72a8 8 0 0 0-8-8" opacity=".2"/><path d="M100 56H40a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h60v8a32 32 0 0 1-32 32a8 8 0 0 0 0 16a48.05 48.05 0 0 0 48-48V72a16 16 0 0 0-16-16m0 80H40V72h60Zm116-80h-60a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h60v8a32 32 0 0 1-32 32a8 8 0 0 0 0 16a48.05 48.05 0 0 0 48-48V72a16 16 0 0 0-16-16m0 80h-60V72h60Z"/></g></svg></span></span>
  <blockquote>
    <p>This means no more standalone Tailwind config, no committed stylesheet, no <code>node_modules</code> in <code>static/</code> and no build toolchain leaking onto the live site. Very cool!</p>
  </blockquote>
  <figcaption>
    <cite>me, in June, admiring a thing I have since bulldozed</cite>
  </figcaption>
</figure>

<p>To be clear, the June cleanup wasn&rsquo;t <em>wrong</em>. The pipeline was genuinely tidy. But, a tidy pipeline is still a pipeline and somewhere between then and now I started asking a more annoying question: why does a personal blog, a pile of static text, need a JavaScript toolchain at all? Why do I need to buy into the Tailwind framework when I knew full well how to write vanilla CSS with my own hands? Every <code>npm install</code> was a little tax that I&rsquo;d eventually have to pay with interest the next time I wanted to update the site&rsquo;s dependencies. I felt as if I wasn&rsquo;t maintaining a blog. I was maintaining the machinery that produces a blog and the machinery had some very strong opinions.</p>
<p>So, I did a hard reset with a <em>very</em> satisfying amount of deleting.</p>
<h2 id="the-demolition-">
  <a class="heading-link" href="#the-demolition-">The demolition &hellip;<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>Here&rsquo;s the bill for the redesign commit:</p>
<div class="code-block">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">230 files changed, 3951 insertions(+), 33365 deletions(-)</span></span></code></pre></div>
</div>
<p>That&rsquo;s roughly a 10-to-1 ratio of deleted to written. Which, as a software engineer, is my favourite kind of ratio. I happily added the following the to chopping block:</p>
<ul>
<li><strong>Tailwind v4 and the typography plugin.</strong> Replaced by one hand-written CSS file. The whole thing gzips to under <code>~10kB</code> with syntax highlighting included.</li>
<li><strong>The entire Node toolchain.</strong> The <code>package.json</code>, lockfile, Prettier and its plugins. There is no <code>npm install</code> step anymore because there is no npm anymore.</li>
<li><strong>Fuse.js and the ⌘K search palette.</strong> Nobody was searching this blog. I checked. It was me. I was nobody.</li>
<li><strong>Two self-hosted webfonts.</strong> More on this in a second, because it&rsquo;s the biggest single win.</li>
<li><strong>The changelog page.</strong> This pulled from the GitHub events API and shipped with an <code>18,016</code>-line JSON fixture for local dev. Eighteen <em>thousand</em> lines of someone else&rsquo;s API response, committed to my repo. So, a page barely anybody visited could render in development. I mean, I added it back becase <em>I</em> missed it, but it&rsquo;s <em>much</em> more efficient now.</li>
<li><strong>68 of the 79 icon SVGs.</strong> A 390-line drawer menu and a taxonomy I&rsquo;d stopped using.</li>
</ul>
<p>The layouts went from <code>2,868</code> lines of template across <code>48</code> files to about <code>800</code> lines across <code>21</code>. Not because I got cleverer, but because most of that code was written for the joy of it. Which, look, is a fine reason to build something. It&rsquo;s just a bad reason to keep serving it to strangers. And with all that complexity and cruft came what felt like a lot of brittleness.</p>
<h2 id="the-fonts-had-to-go-too">
  <a class="heading-link" href="#the-fonts-had-to-go-too">The fonts had to go too.<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>This one hurt a little. I like Inter and Rubik. Together they were <code>449kB</code> of <code>woff2</code> riding along on every first visit. Which made them, by an enormous margin, the heaviest thing on the site.</p>
<p>So, I dropped them and switched to the system font stack which, to my surprise, actually looked <em>better</em> on the site. The actual typeface was doing very little. Your operating system already ships a perfectly good set. All lovingly hinted by people with far more patience and experience than myself. Best of all it costs zero bytes to use!</p>
<figure class="pull-quote">
  <span class="pull-quote-mark" aria-hidden="true"><span class="icon "><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 256 256"><g fill="currentColor"><path d="M108 72v72H40a8 8 0 0 1-8-8V72a8 8 0 0 1 8-8h60a8 8 0 0 1 8 8m108-8h-60a8 8 0 0 0-8 8v64a8 8 0 0 0 8 8h68V72a8 8 0 0 0-8-8" opacity=".2"/><path d="M100 56H40a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h60v8a32 32 0 0 1-32 32a8 8 0 0 0 0 16a48.05 48.05 0 0 0 48-48V72a16 16 0 0 0-16-16m0 80H40V72h60Zm116-80h-60a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h60v8a32 32 0 0 1-32 32a8 8 0 0 0 0 16a48.05 48.05 0 0 0 48-48V72a16 16 0 0 0-16-16m0 80h-60V72h60Z"/></g></svg></span></span>
  <blockquote>
    <p>By Grabthar's hammer... What a savings.</p>
  </blockquote>
  <figcaption>
    <cite>Dr. Lazarus from Galaxy Quest</cite>
  </figcaption>
</figure>

<h2 id="hugo-finally-home-alone">
  <a class="heading-link" href="#hugo-finally-home-alone">Hugo, finally home alone.<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>Thanks to all the trimmed fat, the build process is effectively just <code>hugo</code>. No more extended binary, SCSS, image processing or defining <code>NODE_VERSION</code> in Cloudflare Pages required. Fewer dependencies mean fewer moving parts and that&rsquo;s always an improvement.</p>
<h2 id="numbers-or-it-didnt-happen">
  <a class="heading-link" href="#numbers-or-it-didnt-happen">Numbers, or it didn&rsquo;t happen.<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>Right after the deploy I proudly measured the new site and announced it was &ldquo;under <code>100kB</code>&rdquo;. Which would have been true if the production site were served by my dev server, uncompressed, with a <code>40kB</code> livereload script attached. I made the mistake of measuring the network stats on my local development server. <em>Womp, womp</em>.</p>
<p>The real numbers, from the live site with Cloudflare&rsquo;s <code>brotli</code> doing its thing:</p>
<table>
	<thead>
			<tr>
					<th></th>
					<th>Before</th>
					<th>After</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>Cold home page</td>
					<td><code>~750kB</code></td>
					<td><code>~24kB</code></td>
			</tr>
			<tr>
					<td>Webfonts</td>
					<td><code>449kB</code></td>
					<td><code>0kB</code></td>
			</tr>
			<tr>
					<td>Stylesheet ( compressed )</td>
					<td>it&rsquo;s complicated</td>
					<td>under <code>~10kB</code></td>
			</tr>
			<tr>
					<td><code>npm install</code></td>
					<td>required</td>
					<td>there is nothing to install</td>
			</tr>
	</tbody>
</table>
<p>The single largest asset on the home page is now the favicon. <code>7.5kB</code>; roughly a third of the total weight. I think you&rsquo;re allowed to stop optimising when your largest single asset is your <code>favicon.ico</code>. It&rsquo;s an image of my gorgeous mug. It stays. I&rsquo;m quite attached to it.</p>
<h2 id="an-ambitious-first-pass">
  <a class="heading-link" href="#an-ambitious-first-pass">An ambitious first pass.<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>In retrospect, I wanted to make everything simpler and unintentionally over-compensated in the opposite direction. I stripped out too much and was now staring at a sad little blog with zero personality.</p>
<p>So, the second half of the job was building the personality back and making my selections a bit more deliberate. One thing led to another and I think I&rsquo;ve produced my finest work yet on a personal blog. It&rsquo;s small and lightening fast. I&rsquo;m not sure where else I can optimise without drastically affecting the overall vibe of the design; the law of diminishing returns&hellip; returns.</p>
<p>The thing about now having such a light frame is adding to it stops feeling like a burden, or something future Wilhelm will have to pay. For example, here are the biggest things I&rsquo;ve added and they <em>barely</em> increased the overall &ldquo;weight&rdquo; of the design.</p>
<h3 id="series">
  <a class="heading-link" href="#series">Series<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h3>
<p>A proper taxonomy for multi-part writing. Built because I&rsquo;ve been wanting to write a Cyberpunk-themed set of tutorials for writing advanced HCL in Go. The series will be about eight posts long and outside of sharing a tag, I had no way to string them together. Series posts wear a stacked-sheet card, a segmented progress meter that is absolutely <em>not</em> a cyberdeck RAM readout and a panel showing every part in the run, including the ones that don&rsquo;t exist yet.</p>
<p>The unpublished parts of a series ship as glyph noise and decode, left to right, when you point at them. The real titles sit in <code>aria-label</code> the whole time, so a screen reader is never handed the static. The browser tab pulls the same trick on every page load, because a title bar is just a very small marquee nobody was using.</p>
<p>Try moving your mouse pointer over some of the &ldquo;encrypted&rdquo; titles on the new <a href="https://wilhelm.codes/series">dedicated</a> page.</p>
<h3 id="tired-leds">
  <a class="heading-link" href="#tired-leds">Tired LEDs<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h3>
<p>The lit chips in the series meters, static leaders in the main page&rsquo;s hero section and a scattered handful of cells in the activity graph flicker like hardware that has seen some things. Their animation clocks share no common factors, so the pattern never visibly repeats. The same no-RNG randomness as the heading glitch. On page load the whole graph boots like an old panel, dark, then a sputter per cell, then steady stream of blinking boxes. Reminiscent of the old monochrome screens and beige boxes of my youth.</p>
<p>Christ, I&rsquo;m getting old.</p>
<h3 id="changelog-resurrected">
  <a class="heading-link" href="#changelog-resurrected">Changelog, resurrected<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h3>
<p>Yes, the one from the butcher&rsquo;s block above. However, instead of hitting the associated Github repository directly at build time using a PAT, the new one doesn&rsquo;t call anyone. Commit data is sourced <em>directly</em> from Cloudflare Pages&rsquo; shallow clone it checks out during build time. There&rsquo;s a simple 20-or-so-line shell script reads <code>git log</code> and Hugo renders the result. <code>HEAD</code> gets a lit node that flickers, <a href="https://wilhelm.codes/changelog">because why the hell not</a>?</p>
<h3 id="image-shortcodes">
  <a class="heading-link" href="#image-shortcodes">Image shortcodes<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h3>
<p>Something I&rsquo;ve been meaning to add is support for various ways to display images. Each image can now be clicked-to-zoom with attribution in the following forms:</p>
<ul>
<li>Masonry.</li>
<li>A scrollable, horizontal display.</li>
<li>Last, but not least, the typicla single image display.</li>
</ul>
<p>There&rsquo;s actually a sneaky, super-secret page I use to test all my shortcodes and typography stylings where you can <a href="https://wilhelm.codes/blog/markdown-elements/">see everything for yourself</a>.</p>
<p>Even with all these complex additions, it all adds up to a few kilobytes of CSS and inline script. Which is to say the entire second wave of features weighs an order of magnitude less than one of the webfonts I deleted.</p>
<h2 id="my-new-favourite-fidget-toy">
  <a class="heading-link" href="#my-new-favourite-fidget-toy">My new favourite fidget toy.<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>The part I didn&rsquo;t expect was to glue my eyeballs to the Firefox throttle menu under its network tools panel.</p>
<p>I flipped it to a 2G profile just for shits and giggles - call it a generous <code>50kb</code> per second - and did the napkin math. The old site&rsquo;s <code>750kB</code> works out to between <code>60</code> to <code>90</code> seconds of staring at a blank viewport. The new site lands in about four seconds on a connection profile most of the industry stopped thinking about a decade ago.</p>
<p>I have reloaded this page on simulated garbage networks far more times than any reasonable person should, and it is satisfying <em>every single time</em>. The page just&hellip; appears. Like a website. Remember plain&rsquo;ole websites?</p>
<p>None of this is novel, I know. The &ldquo;your blog doesn&rsquo;t need <code>2MB</code> of JavaScript&rdquo; essay has been written a hundred times. Usually on a blog serving <code>2MB</code> of JavaScript. I&rsquo;m not even the hundred-and-first person to do this. But, there&rsquo;s a difference between nodding along to the idea and watching your own site load over a simulated tin-can connection before you can finish blinking.</p>
<h2 id="in-closing-">
  <a class="heading-link" href="#in-closing-">In closing &hellip;<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>The funny thing about the June post is that it ended with me feeling like the blog was finally sorted. And it was! For the architecture it had. It just turned out the architecture itself was the thing that needed to go.</p>
<p>The site is now boring in the best possible way. It builds with one command, it has no dependencies to rot behind my back and the whole design fits in one stylesheet I can actually hold in my head ( not really ). Fewer moving parts, fewer things to forget, fewer surprises the next time I touch it in six months. Best of all, it looks fucking great!</p>
<p>Set-and-forget, but this time with almost nothing left to forget. &hellip; Right?</p>]]></content:encoded></item><item><title>Goodbye Tailwind. Goodbye Node. We’re rolling vanilla HTML, CSS and …</title><link>https://wilhelm.codes/bits/blurb-hours-without-webfonts/</link><pubDate>Thu, 20 Aug 2026 20:50:00 +1000</pubDate><author>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</author><guid>https://wilhelm.codes/bits/blurb-hours-without-webfonts/</guid><category>css</category><category>wilhelm.codes</category><wc:kind>bit</wc:kind><wc:bit>blurb</wc:bit><wc:untitled>true</wc:untitled><description>Goodbye Tailwind. Goodbye Node. We&amp;rsquo;re rolling vanilla HTML, CSS and JS. No more webfonts, we on them system faces now. A couple of hours on I have not missed the webfonts once. The site is lighter, the text is sharper on my screen and the only person who ever noticed was me. 750kb cold start for the main page is now under 18kb.
Everything is so much faster now I should&amp;rsquo;ve done this months ago when I first revamped the site.</description><content:encoded><![CDATA[<p>Goodbye Tailwind. Goodbye Node. We&rsquo;re rolling vanilla HTML, CSS and JS. No more webfonts, we on them system faces now. A couple of hours on I have not missed the webfonts once. The site is lighter, the text is sharper on my screen and the only person who ever noticed was me. <code>750kb</code> cold start for the main page is now <em>under</em> <code>18kb</code>.</p>
<p>Everything is so much faster now I should&rsquo;ve done this months ago when I first revamped the site.</p>
]]></content:encoded></item><item><title>Spent an evening on the tags. A few of them were doing the same job …</title><link>https://wilhelm.codes/bits/update-tidied-up-the-tags/</link><pubDate>Wed, 05 Aug 2026 17:40:00 +1000</pubDate><author>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</author><guid>https://wilhelm.codes/bits/update-tidied-up-the-tags/</guid><category>wilhelm.codes</category><wc:kind>bit</wc:kind><wc:bit>update</wc:bit><wc:untitled>true</wc:untitled><description>Spent an evening on the tags. A few of them were doing the same job under different names, so the duplicates are merged and the thin ones are gone. The cloud in the rail is shorter and rather more honest for it.</description><content:encoded>&lt;p>Spent an evening on the tags. A few of them were doing the same job under different names, so the duplicates are merged and the thin ones are gone. The cloud in the rail is shorter and rather more honest for it.&lt;/p>
</content:encoded></item><item><title>Having a play with a more dynamic menu drawer. Just working out the …</title><link>https://wilhelm.codes/bits/update-new-menu/</link><pubDate>Sat, 04 Jul 2026 13:17:45 +1000</pubDate><author>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</author><guid>https://wilhelm.codes/bits/update-new-menu/</guid><category>wilhelm.codes</category><category>hugo</category><wc:kind>bit</wc:kind><wc:bit>update</wc:bit><wc:untitled>true</wc:untitled><description>Having a play with a more dynamic menu drawer. Just working out the kinks on smaller screens.</description><content:encoded>&lt;p>Having a play with a more dynamic menu drawer. Just working out the kinks on smaller screens.&lt;/p>
</content:encoded></item><item><title>Decided to introduce a new projects page to showcase some of the …</title><link>https://wilhelm.codes/bits/update-new-projects-page/</link><pubDate>Thu, 02 Jul 2026 20:39:18 +1000</pubDate><author>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</author><guid>https://wilhelm.codes/bits/update-new-projects-page/</guid><category>wilhelm.codes</category><category>hugo</category><wc:kind>bit</wc:kind><wc:bit>update</wc:bit><wc:untitled>true</wc:untitled><description>Decided to introduce a new projects page to showcase some of the bigger things I&amp;rsquo;m working on. I&amp;rsquo;m still working out the kinks and I&amp;rsquo;m not 100% sold on the current design. Each card is powered by a .toml based datasource in Hugo, contains a kind of linear heatmap of activity related to the associated project&amp;rsquo;s tag as well as the 5 latest related posts. Good enough to publish, I guess.</description><content:encoded><![CDATA[<p>Decided to introduce a new <a href="https://wilhelm.codes/projects">projects</a> page to showcase some of the bigger things I&rsquo;m working on. I&rsquo;m still working out the kinks and I&rsquo;m not 100% sold on the current design. Each card is powered by a <code>.toml</code> based datasource in Hugo, contains a kind of linear heatmap of activity related to the associated project&rsquo;s tag as well as the 5 latest related posts. Good enough to publish, I guess.</p>
<p>I also can&rsquo;t decide on which activity graph animation I like the most. 😅</p>
]]></content:encoded></item><item><title>I am very smart. I only just realised over the weekend that issues and …</title><link>https://wilhelm.codes/bits/update-forgot-to-turn-on-comments/</link><pubDate>Mon, 29 Jun 2026 11:47:27 +1000</pubDate><author>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</author><guid>https://wilhelm.codes/bits/update-forgot-to-turn-on-comments/</guid><category>wilhelm.codes</category><category>github</category><wc:kind>bit</wc:kind><wc:bit>update</wc:bit><wc:untitled>true</wc:untitled><description>I am very smart. I only just realised over the weekend that issues and discussions in the parent repo for this site were disabled. Meaning, article coments using Giscuss was functionally disabled here. WOOPS!</description><content:encoded>&lt;p>I am very smart. I only just realised over the weekend that issues and discussions in the parent repo for this site were disabled. Meaning, article coments using Giscuss was functionally disabled &lt;em>here&lt;/em>. WOOPS!&lt;/p>
</content:encoded></item><item><title>Some small incremental updates for the site today:
The addition of a …</title><link>https://wilhelm.codes/bits/update-new-rss-feeds/</link><pubDate>Sun, 21 Jun 2026 16:01:44 +1000</pubDate><author>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</author><guid>https://wilhelm.codes/bits/update-new-rss-feeds/</guid><category>wilhelm.codes</category><wc:kind>bit</wc:kind><wc:bit>update</wc:bit><wc:untitled>true</wc:untitled><description>Some small incremental updates for the site today:
The addition of a new bit type for site updates like this one. Proper RSS feeds for both long-form articles and bits. Check the footer! A quick sweep of the site map to ensure everything maps out properly. There were a few dead links previously. You can now filter bits by type! Have a play with it at the top of this page. Some minor grammatical updates here and there for some recent content. Something to note is that the bits filter is purely JS based and assumes all content will be displayed in a single page. This is fine for now, but there may be 100s or even 1,000s of entries on a long enough timeline. At that point, basic text search and filtering that supports pagination may be necessary. But, not today!</description><content:encoded><![CDATA[<p>Some small incremental updates for the site today:</p>
<ul>
<li>The addition of a new bit type for site updates like this one.</li>
<li>Proper RSS feeds for both <a href="https://wilhelm.codes/articles.xml">long-form articles</a> and <a href="https://wilhelm.codes/bits.xml">bits</a>. Check the footer!</li>
<li>A quick sweep of the <a href="https://wilhelm.codes/sitemap.xml">site map</a> to ensure everything maps out properly. There were a few dead links previously.</li>
<li>You can now filter bits by type! Have a play with it at the top of <a href="https://wilhelm.codes/bits">this</a> page.</li>
<li>Some minor grammatical updates here and there for some recent content.</li>
</ul>
<p>Something to note is that the bits filter is purely JS based and assumes all content will be displayed in a single page. This is fine for now, but there may be 100s or even 1,000s of entries on a long enough timeline. At that point, basic text search and filtering that supports pagination may be necessary. But, not today!</p>
]]></content:encoded></item><item><title>I am not a smart man. I completely forgot I was using the “Pro” …</title><link>https://wilhelm.codes/bits/blurb-i-am-not-a-smart-man/</link><pubDate>Fri, 19 Jun 2026 00:00:00 +0000</pubDate><author>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</author><guid>https://wilhelm.codes/bits/blurb-i-am-not-a-smart-man/</guid><category>woops</category><category>wilhelm.codes</category><wc:kind>bit</wc:kind><wc:bit>blurb</wc:bit><wc:untitled>true</wc:untitled><description>I am not a smart man. I completely forgot I was using the &amp;ldquo;Pro&amp;rdquo; version of FontAwesome and had the entire library committed to this very public repository without any licensing coverage. I mean, the pro version shouldn&amp;rsquo;t be shared anyway. You may have noticed the associated Github repository has been temporarily set to private and that all commit history as been wiped. Sucks, but I felt this was much more pragmatic than removing multiple specific files from the tree. I am not an expert git surgeon, so that got a hard pass from me.</description><content:encoded><![CDATA[<p>I am not a smart man. I completely forgot I was using the &ldquo;Pro&rdquo; version of FontAwesome and had the entire library committed to this very public repository without any licensing coverage. I mean, the pro version shouldn&rsquo;t be shared anyway. You may have noticed the associated Github repository has been temporarily set to private and that all commit history as been wiped. Sucks, but I felt this was much more pragmatic than removing multiple specific files from the tree. I am not an expert git surgeon, so that got a hard pass from me.</p>
<p>I&rsquo;m currently experimenting with some alternative OPEN SOURCE web icons and updating the third-party licensing notice bundled with the repo to cover icons as well as web fonts.</p>
<p>Luckily, only <em>I</em> noticed this issue and immediately worked to address it.</p>
<p><em>edit:</em> Good-bye, sweet git history!</p>
]]></content:encoded></item><item><title>Let Me Show You My Bits</title><link>https://wilhelm.codes/blog/let-me-show-you-my-bits/</link><pubDate>Thu, 18 Jun 2026 00:00:00 +0000</pubDate><author>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</author><guid>https://wilhelm.codes/blog/let-me-show-you-my-bits/</guid><category>hugo</category><category>css</category><category>tailwindcss</category><category>wilhelm.codes</category><wc:kind>post</wc:kind><description>A while back, in Reading Between the Posts, I wired up the home page so the quiet gaps between articles would narrate themselves - &amp;ldquo;1 bit and 41 changelog events in between&amp;rdquo;. There was just one tiny problem with that sentence. At the time I had written exactly zero bits.</description><content:encoded><![CDATA[<p>A while back, in <a href="https://wilhelm.codes/blog/reading-between-the-posts/">Reading Between the Posts</a>, I wired up the home page so the quiet gaps between articles would narrate themselves - &ldquo;<em>1 bit and 41 changelog events in between</em>&rdquo;. There was just one tiny problem with that sentence. At the time I had written exactly <em>zero</em> bits.</p>
<p>So let me finally show you my bits.</p>
<h2 id="what-even-is-a-bit">
  <a class="heading-link" href="#what-even-is-a-bit">What even is a bit?<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>A bit is the smallest unit of &ldquo;I made a thing&rdquo; I&rsquo;m willing to commit to. It could be a quote that stuck with me, a link worth keeping, the odd YouTube video, or a one-line thought too small to earn its own long-form entry. Each one is a little markdown file in <code>/bits</code> and  the only thing it really has to declare is what <em>kind</em> of bit it is:</p>
<div class="code-block">
  <div class="code-head">
    <span class="code-file"></span>
    <span class="code-lang">YAML</span>
  </div>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="nn">---</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">type</span><span class="p">:</span><span class="w"> </span><span class="l">quote</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">date</span><span class="p">:</span><span class="w"> </span><span class="ld">2026-06-17</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">source</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;Edsger Dijkstra&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nn">---</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="s2">&#34;Simplicity is a great virtue but it requires hard work to achieve it.&#34;</span></span></span></code></pre></div>
</div>
<p><code>type</code> is the whole trick that everything else hangs off.</p>
<h2 id="one-shape-per-thought">
  <a class="heading-link" href="#one-shape-per-thought">One shape per thought.<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>The thing I didn&rsquo;t want was for a pithy quote to render like a bare link or to render like a video. They&rsquo;re different shapes of thought, so they ought to look different.</p>
<p>I&rsquo;d already learned this lesson building the <a href="https://wilhelm.codes/blog/a-changelog-that-builds-itself/">changelog</a>, which leans on one tiny partial per event type. So I stole from myself. There&rsquo;s a single lookup table mapping each <code>type</code> to an icon, an accent colour and a label:</p>
<div class="code-block">
  <div class="code-head">
    <span class="code-file"></span>
    <span class="code-lang">Go</span>
  </div>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-go" data-lang="go"><span class="line"><span class="cl"><span class="p">{{</span><span class="w"> </span><span class="err">$</span><span class="nx">meta</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="nx">dict</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="s">&#34;quote&#34;</span><span class="w"> </span><span class="p">(</span><span class="nx">dict</span><span class="w"> </span><span class="s">&#34;icon&#34;</span><span class="w"> </span><span class="s">&#34;quote-right&#34;</span><span class="w">    </span><span class="s">&#34;colour&#34;</span><span class="w"> </span><span class="s">&#34;rose&#34;</span><span class="w">    </span><span class="s">&#34;label&#34;</span><span class="w"> </span><span class="s">&#34;quote&#34;</span><span class="p">)</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="s">&#34;link&#34;</span><span class="w">  </span><span class="p">(</span><span class="nx">dict</span><span class="w"> </span><span class="s">&#34;icon&#34;</span><span class="w"> </span><span class="s">&#34;arrow-up-right&#34;</span><span class="w"> </span><span class="s">&#34;colour&#34;</span><span class="w"> </span><span class="s">&#34;blue&#34;</span><span class="w">    </span><span class="s">&#34;label&#34;</span><span class="w"> </span><span class="s">&#34;link&#34;</span><span class="p">)</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="s">&#34;video&#34;</span><span class="w"> </span><span class="p">(</span><span class="nx">dict</span><span class="w"> </span><span class="s">&#34;icon&#34;</span><span class="w"> </span><span class="s">&#34;youtube&#34;</span><span class="w">        </span><span class="s">&#34;colour&#34;</span><span class="w"> </span><span class="s">&#34;red&#34;</span><span class="w">     </span><span class="s">&#34;label&#34;</span><span class="w"> </span><span class="s">&#34;video&#34;</span><span class="p">)</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="s">&#34;blurb&#34;</span><span class="w"> </span><span class="p">(</span><span class="nx">dict</span><span class="w"> </span><span class="s">&#34;icon&#34;</span><span class="w"> </span><span class="s">&#34;pen-nib&#34;</span><span class="w">        </span><span class="s">&#34;colour&#34;</span><span class="w"> </span><span class="s">&#34;emerald&#34;</span><span class="w"> </span><span class="s">&#34;label&#34;</span><span class="w"> </span><span class="s">&#34;blurb&#34;</span><span class="p">)</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="p">}}</span></span></span></code></pre></div>
</div>
<p>It then matches a micro-partial per type that decides how the content actually renders. Adding a brand new kind of bit is now &ldquo;add one row, add one tiny template&rdquo;, which is about as many steps as I&rsquo;m willing to tolerate.</p>
<p><img
  src="https://wilhelm.codes/blog/let-me-show-you-my-bits/bits_hu_88740d4c34822745.webp"
  srcset="/blog/let-me-show-you-my-bits/bits_hu_88740d4c34822745.webp 736w, /blog/let-me-show-you-my-bits/bits_hu_7c64b843d8098172.webp 1104w, /blog/let-me-show-you-my-bits/bits_hu_321d663198ba2c25.webp 1472w"
  sizes="(max-width: 48rem) 100vw, 736px"
  width="736"
  height="596"
  alt=""
  
  loading="lazy"
  decoding="async"
/>
</p>
<h2 id="hugo-why-are-you-like-this">
  <a class="heading-link" href="#hugo-why-are-you-like-this">Hugo, why are you like this?<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>My bits started life with two perfectly reasonable front-matter fields: <code>type</code> and <code>url</code>. Hugo took one look and quietly robbed me of both.</p>
<p>It turns out <code>url</code> is a <em>reserved</em> key which Hugo uses to treat as the page&rsquo;s permalink. So, the moment I put a <code>https://...</code> in there, the build fell over with a stern little message about unsupported protocols. <code>type</code> doesn&rsquo;t even have the decency to error. It silently moves out of <code>.Params.type</code> and into <code>.Type</code>, which <em>also</em> hijacks the layout lookup. So my <code>.Params.type</code> was resolving to nothing and every single bit was quietly rendering as the fallback.</p>
<p>Turns out hte fix for this was simply to rename <code>url</code> to <code>link</code> and  read <code>.Type</code> instead of <code>.Params.type</code>. Half an hour of my life dedicated to two words I didn&rsquo;t know were already spoken for.</p>
<p>Coding is my passion.</p>
<h2 id="bits-flapping-in-the-wind">
  <a class="heading-link" href="#bits-flapping-in-the-wind">Bits flapping in the wind.<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>Rather than dumping bits into the same fold-out list as the GitHub noise, I pulled them out as their own first-class timeline rows. The lower-signal changelog chatter stays tucked behind the &ldquo;<em>N changelog events in between</em>&rdquo; disclosure. So, the home page now reads in three tiers:</p>
<ul>
<li>the loud headline articles</li>
<li>the medium-volume bits</li>
<li>the quiet changelog hum</li>
</ul>
<p>The same interstitial machinery I built last time, but bits just get to stand a little taller than a commit.</p>
<p><img
  src="https://wilhelm.codes/blog/let-me-show-you-my-bits/home_hu_e7f8fe2d00bce999.webp"
  srcset="/blog/let-me-show-you-my-bits/home_hu_e7f8fe2d00bce999.webp 736w, /blog/let-me-show-you-my-bits/home_hu_bf5b90ae24a2b65.webp 1104w, /blog/let-me-show-you-my-bits/home_hu_62fda724f7b72c05.webp 1472w"
  sizes="(max-width: 48rem) 100vw, 736px"
  width="736"
  height="310"
  alt=""
  
  loading="lazy"
  decoding="async"
/>
</p>
<h2 id="the-tag-that-went-nowhere">
  <a class="heading-link" href="#the-tag-that-went-nowhere">The tag that went nowhere.<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>Bits are deliberately <code>render: never</code> in Hugo. They live inline on the bits page and never get their own URL. Except &ldquo;no page&rdquo; also quietly means &ldquo;no place in the taxonomy&rdquo;, which means a tag only ever used by a bit has no <code>/tags/...</code> page to point at. If I link it anyway I&rsquo;ve shipped a <code>404</code>.</p>
<p>So, the tags only become links if there&rsquo;s actually somewhere to go:</p>
<div class="code-block">
  <div class="code-head">
    <span class="code-file"></span>
    <span class="code-lang">Go</span>
  </div>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-go" data-lang="go"><span class="line"><span class="cl"><span class="p">{{</span><span class="w"> </span><span class="nx">with</span><span class="w"> </span><span class="nx">site</span><span class="p">.</span><span class="nf">GetPage</span><span class="w"> </span><span class="p">(</span><span class="nx">printf</span><span class="w"> </span><span class="s">&#34;/tags/%s&#34;</span><span class="w"> </span><span class="p">(</span><span class="nx">urlize</span><span class="w"> </span><span class="p">.))</span><span class="w"> </span><span class="p">}}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="p">&lt;</span><span class="nx">a</span><span class="w"> </span><span class="nx">href</span><span class="p">=</span><span class="s">&#34;{{ .RelPermalink }}&#34;</span><span class="p">&gt;</span><span class="err">#</span><span class="p">{{</span><span class="w"> </span><span class="p">.</span><span class="nx">Data</span><span class="p">.</span><span class="nx">Term</span><span class="w"> </span><span class="p">}}&lt;</span><span class="o">/</span><span class="nx">a</span><span class="p">&gt;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="p">{{</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">}}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="p">&lt;</span><span class="nx">span</span><span class="p">&gt;</span><span class="err">#</span><span class="p">{{</span><span class="w"> </span><span class="p">.</span><span class="w"> </span><span class="p">}}&lt;</span><span class="o">/</span><span class="nx">span</span><span class="p">&gt;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="p">{{</span><span class="w"> </span><span class="nx">end</span><span class="w"> </span><span class="p">}}</span></span></span></code></pre></div>
</div>
<p>A tag with a real page becomes a link and a bit-only tag stays as plain text. No broken links and the nice part is it heals itself the moment a proper article picks up the same tag.</p>
<h2 id="in-closing-">
  <a class="heading-link" href="#in-closing-">In closing &hellip;<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>The front page has quietly turned into a proper little stream. Long-form when I&rsquo;ve actually got something to say, bits when I don&rsquo;t and  a <a href="https://wilhelm.codes/blog/a-year-in-circles/">year of squircles</a> up top keeping a tally of it all.</p>
<p>Which is the entire point. The less effort it takes to post a half-formed thought, the more likely I am to actually post it. And the more I post, the more those gaps fill in.</p>
<p>And, as always, you can check everything out for yourself in the <a href="https://github.com/wilhelm-murdoch/wilhelm.codes">repo</a>.</p>]]></content:encoded></item><item><title>Some Long Overdue Housekeeping</title><link>https://wilhelm.codes/blog/some-long-overdue-housekeeping/</link><pubDate>Sun, 14 Jun 2026 00:00:00 +0000</pubDate><author>0xdeadbeef@devilmayco.de (Wilhelm Murdoch)</author><guid>https://wilhelm.codes/blog/some-long-overdue-housekeeping/</guid><category>hugo</category><category>tailwindcss</category><category>css</category><category>refactoring</category><category>wilhelm.codes</category><wc:kind>post</wc:kind><description>This blog has been quietly chugging along for a while now without me paying it much attention. Which is, I suppose, the whole point of a set-and-forget setup. But &amp;ldquo;set-and-forget&amp;rdquo; has a sneaky way of becoming &amp;ldquo;forgotten&amp;rdquo;, and the longer you leave something untouched, the more it quietly rots behind your back. So I rolled up my sleeves and gave the whole thing a proper tune-up.</description><content:encoded><![CDATA[<p>This blog has been quietly chugging along for a while now without me paying it much attention. Which is, I suppose, the whole point of a <a href="https://wilhelm.codes/blog/my-blog-publishing-setup/">set-and-forget</a> setup. But &ldquo;set-and-forget&rdquo; has a sneaky way of becoming &ldquo;forgotten&rdquo;, and the longer you leave something untouched, the more it quietly rots behind your back. So I rolled up my sleeves and gave the whole thing a proper tune-up.</p>
<h2 id="confession-time">
  <a class="heading-link" href="#confession-time">Confession Time<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>While poking around the build, I discovered something a little embarrassing. My Tailwind setup - the source, the config, and the <em>entire</em> <code>node_modules</code> directory - was living inside Hugo&rsquo;s <code>static/</code> folder.</p>
<p>If you know Hugo, you already know where this is going. Everything in <code>static/</code> gets copied, verbatim, into the final site. Which means I had been cheerfully publishing my whole build toolchain - megabytes of it - to the live site on every single deploy. So, yeah. Production was shipping <code>node_modules</code>. Coding is my passion.</p>
<p>Nobody noticed, nothing broke, and the world kept turning. But it&rsquo;s the kind of thing that, once you see it, you can&rsquo;t <em>un</em>-see. To be fair to myself, when I originally put this Hugo site together, I only learned enough to get something shipped.</p>
<h2 id="letting-hugo-do-the-heavy-lifting">
  <a class="heading-link" href="#letting-hugo-do-the-heavy-lifting">Letting Hugo do the heavy lifting.<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>The reason that mess existed in the first place was that I&rsquo;d wired up Tailwind as a separate, manual build step that spat out a compiled stylesheet for Hugo to pick up. It worked, but it was a second moving part I had to remember existed.</p>
<p>The good news is that recent versions of Hugo can drive <a href="https://gohugo.io/functions/css/tailwindcss/">Tailwind</a> itself, natively, as part of the normal asset pipeline. Combined with Tailwind v4 - which finally ditches the JavaScript config file in favour of configuring everything in CSS - I got to delete a <em>lot</em> of stuff:</p>
<div class="code-block">
  <div class="code-head">
    <span class="code-file"></span>
    <span class="code-lang">Bash</span>
  </div>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">$ git diff --shortstat main...modernize
</span></span><span class="line"><span class="cl"><span class="m">64</span> files changed, <span class="m">1872</span> insertions<span class="o">(</span>+<span class="o">)</span>, <span class="m">40197</span> deletions<span class="o">(</span>-<span class="o">)</span></span></span></code></pre></div>
</div>
<p>The whole stylesheet now starts its life as a single entry point:</p>
<div class="code-block">
  <div class="code-head">
    <span class="code-file"></span>
    <span class="code-lang">CSS</span>
  </div>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-css" data-lang="css"><span class="line"><span class="cl"><span class="p">@</span><span class="k">import</span> <span class="s2">&#34;tailwindcss&#34;</span><span class="p">;</span>
</span></span><span class="line"><span class="cl"><span class="p">@</span><span class="k">plugin</span> <span class="s2">&#34;@tailwindcss/typography&#34;</span><span class="p">;</span>
</span></span><span class="line"><span class="cl"><span class="p">@</span><span class="k">source</span> <span class="s2">&#34;hugo_stats.json&#34;</span><span class="p">;</span></span></span></code></pre></div>
</div>
<p>That <code>hugo_stats.json</code> bit is the clever part. Hugo writes out a list of every utility class it actually emits, and Tailwind reads <em>that</em> to decide what to generate. No more pointing Tailwind at my templates and hoping it guesses right.</p>
<p>Then a small partial hands it all off to Hugo to compile, minify and fingerprint:</p>
<div class="code-block">
  <div class="code-head">
    <span class="code-file"></span>
    <span class="code-lang">Go</span>
  </div>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-go" data-lang="go"><span class="line"><span class="cl"><span class="p">{{</span><span class="o">-</span><span class="w"> </span><span class="nf">with</span><span class="w"> </span><span class="p">(</span><span class="nx">templates</span><span class="p">.</span><span class="nf">Defer</span><span class="w"> </span><span class="p">(</span><span class="nx">dict</span><span class="w"> </span><span class="s">&#34;key&#34;</span><span class="w"> </span><span class="s">&#34;css&#34;</span><span class="p">))</span><span class="w"> </span><span class="p">}}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="p">{{</span><span class="o">-</span><span class="w"> </span><span class="nx">with</span><span class="w"> </span><span class="nx">resources</span><span class="p">.</span><span class="nx">Get</span><span class="w"> </span><span class="s">&#34;css/main.css&#34;</span><span class="w"> </span><span class="p">}}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="p">{{</span><span class="o">-</span><span class="w"> </span><span class="err">$</span><span class="nx">opts</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="nx">dict</span><span class="w"> </span><span class="s">&#34;minify&#34;</span><span class="w"> </span><span class="p">(</span><span class="nx">not</span><span class="w"> </span><span class="nx">hugo</span><span class="p">.</span><span class="nx">IsDevelopment</span><span class="p">)</span><span class="w"> </span><span class="p">}}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="p">{{</span><span class="o">-</span><span class="w"> </span><span class="nx">with</span><span class="w"> </span><span class="p">.</span><span class="w"> </span><span class="p">|</span><span class="w"> </span><span class="nx">css</span><span class="p">.</span><span class="nx">TailwindCSS</span><span class="w"> </span><span class="err">$</span><span class="nx">opts</span><span class="w"> </span><span class="p">}}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="p">{{</span><span class="o">-</span><span class="w"> </span><span class="cm">/* ...do very cool things... */</span><span class="w"> </span><span class="o">-</span><span class="p">}}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="p">{{</span><span class="o">-</span><span class="w"> </span><span class="nx">end</span><span class="w"> </span><span class="p">}}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="p">{{</span><span class="o">-</span><span class="w"> </span><span class="nx">end</span><span class="w"> </span><span class="p">}}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="p">{{</span><span class="o">-</span><span class="w"> </span><span class="nx">end</span><span class="w"> </span><span class="p">}}</span></span></span></code></pre></div>
</div>
<p>The <code>templates.Defer</code> wrapper is there because the CSS can&rsquo;t compiled ( transpiled? ) until Hugo has finished rendering every page and knows the full list of classes. So, in a very real way, Hugo solves an annoying 🐔 and 🥚 problem.</p>
<p>This means no more standalone Tailwind config, no committed stylesheet, no <code>node_modules</code> in <code>static/</code>, and no build toolchain leaking onto the live site. Very cool!</p>
<h2 id="so-many-deprecations">
  <a class="heading-link" href="#so-many-deprecations">So. Many. Deprecations.<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>Of course, nothing that&rsquo;s been left alone for a year comes back to life cleanly. Bumping Hugo to the latest release lit up the console like a Christmas tree.</p>
<p>A few of my templates were leaning on things that have since been politely shown the door:</p>
<ul>
<li><code>resources.GetRemote ... .Err</code> for the <a href="https://wilhelm.codes/changelog/">changelog page</a> - that pattern was removed in favour of a shiny new <code>try</code> keyword.</li>
<li><code>.Language.LanguageCode</code> and <code>.Language.LanguageDirection</code>, both deprecated in favour of <code>.Locale</code> and <code>.Direction</code>.</li>
<li>The <code>_build</code> and <code>cascade._target</code> front matter keys, now just <code>build</code> and <code>cascade.target</code>.</li>
</ul>
<p>None of it was hard to fix, but it&rsquo;s a good reminder that &ldquo;it still builds&rdquo; and &ldquo;it builds <em>without complaints</em>&rdquo; are two very different bars.</p>
<h2 id="a-footgun">
  <a class="heading-link" href="#a-footgun">A Footgun!<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>Here&rsquo;s a fun one. The changelog page pulls in a Github event fixture file during local development by fetching it over <code>http://localhost:1313</code>. Effectively, from the very dev server that&rsquo;s <em>trying to build the page</em>.</p>
<p>Those of you who are familiar with such things can probably see the problem. Hugo builds the site <em>before</em> it starts listening on that port, so the build sits there waiting for a server that doesn&rsquo;t exist yet. A deadlock of my own making. The obvious fix was to just read the file off disk instead of asking the network nicely.</p>
<h2 id="some-honourable-mentions">
  <a class="heading-link" href="#some-honourable-mentions">Some honourable mentions.<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>A grab-bag of smaller wins while I had the hood up:</p>
<ul>
<li>Fonts are now served as <code>woff2</code> instead of raw <code>ttf</code>, with <code>font-display: swap</code> so text shows up immediately instead of hanging around invisible. This alone shaved the font payload down by about 60%.</li>
<li>I also deleted a few MB of fluff that wasn&rsquo;t being loaded by anything.</li>
<li>Prettier got a nice version bump and I taught it to sort my Tailwind classes, so I can stop pretending I do that consistently by hand.</li>
</ul>
<h2 id="was-the-juice-worth-the-squeeze">
  <a class="heading-link" href="#was-the-juice-worth-the-squeeze">Was the juice worth the squeeze?<span class="heading-anchor" aria-hidden="true">#</span>
  </a>
</h2>
<p>Aside from a few cosmetic updates here and there, the site should look pretty much the same as it did before. Which is, weirdly, the whole point; all of this work was about the parts you can&rsquo;t see. I got a leaner build, faster page loads, and a project I can come back to in another year without wincing; famous last words, etc&hellip;</p>
<p>For now, the house is clean. Very nice.</p>]]></content:encoded></item></channel></rss>