blog

Reworking the Main Site

(GO HOME)

Last Update On: Sun, 1st March (2026)

Date: March 1st, 2026 23:00

I literally already did this a while back. Last year at least. But it was surface-level.

Like here’s my problem - it’s starting to become a pain to improve or fix my site. It’s a clusterfucked mix of ideas and implementations that I had over the past many years, and with every year I learn more and more. Which has me looking back at some of my decisions and wondering why in the hell I decided to do them that way.

Firstly, I should probably start by listing all of the big blocks to consider and/or worry about.

Date: March 2nd, 2026

As for the website itself, it shouldn’t be too big of an issue. Like, most of the content is there, I’d just need to restructure how it is displayed or implemented. The most complicated parts of the process are listed above - though theming might be cut since I feel like it causes too much complexity in order to have it work in a way I’m satisfied with.

I could use a sort of nested layout approach — with a parent layer that chooses the right sub-layer passed on properties that are passed in. Something like this:

---
import L1 from "...";
import L2 from "...";
import L3 from "...";
const { sublayout } = Astro.props;
let Inner;
switch (sublayout) {
case "main": Inner = L1;
case "alt1": Inner = L2;
case "alt2": Inner = L3;
default: Inner = L1;
}
---
<Inner>
<slot></slot>
</Inner>

Question being if this would even work. I mean… it should, I think? It feels correct at least.

Honestly, the best approach might just be to rework the frontend only and leave the backend as is, at least for now. I mean, it works. I’m not very happy with its structure, but that’s moreso the inner formatting than the actual API, so theoretically I can go in and improve it whenever.