Astro Blog Upgrade

Here is my nerd post on findings and enjoyments of upgrading to Astro!

First off, unfortunately, yes, I believe there’s an issue with caching that causes my blog to not display the newest layout and appear to “revert” to the old blog design w/ old posts.

I’m trying to work on fixing it, but it seems to maybe be an issue between the client-side browser, Netlify, and having previously used Gatsby with no consistent solution yet. Hopefully, I can find a way to fix this soon!

For now, there’s a workaround if you’re stuck on the old site:

  1. Click on the domain settings in your browser’s navigation bar. It should be left of the URL.
  2. Click on “Cookies and site data”.
  1. Click on “Manage on-device site data”
  1. Click on the trash bin next to the data line item.
  2. Click on “Done” and return to the blog screen. You may need to refresh, but it should show my the blog consistently now!

No more Gatsby

Or what A calls: “Gats-bye!”

A while back, I had a fun meetup with A over coffee & cookies where we talked about blogs, and I recommended self-hosting versus the old (reliable, but old) Wordpress. After A went back and did some research, he found that Gatsby, the backend that I used for my blog, is not so trendy anymore* and one of the better static site hosts is Astro! I took a bit of a look into it (all of 15 minutes, really) and was immediately convinced I needed to upgrade!

*Not only is Gatsby “not trendy”; it’s completely unsupported after being acquired by Netlify. I found this “Gatsby headaches” description fairly apt:

It was like Gatsby got tougher to use with time because of lots of unaddressed issues: outdated dependencies, cold starts, slow builds, and stale plugins, to name a few. Starting a Gatsby project became tedious for me, and perfect Lighthouse scores couldn’t make up for that.

My initial experience with Gatsby was that it was super fun & snappy to whip up a site while not feeling like you live in 2006 still, so it was a bit sad to hear that, but I’m glad (as with tech always goes) there’s plenty of alternatives. Because of dependencies issues, I was only able to update my blog on my desktop PC (not my laptop) for over a year until I finally got brave enough to tackle it over several days, but it really was a Gatsby Headache

I was intrigued by Astro because it seemed even simpler and more customisable… so I had to try it

In short, “converting” my blog over was very straightforward - I don’t use many unusual or complex features, and it’s pretty close to a baseline blog implementation. Still, as with tech tutorials, the moment you take one step off the exact guideline everything tends to break Thankfully, everything ended up working well, I think! (Aside from the cache issue… grr)

Development hiccups:

Fun Astro discoveries:

I’m just happy I was able to have a little more fun with my blog To be honest, I know I could just use something like Blogspot, Wordpress, or many other options, but I’m very picky and want things to be customised exactly how I like it.

Even if it means more work, not being able to post from my phone, encountering development issues, or other drawbacks, I’m pretty happy with using a static site generator backend for blogging

One last fun thing: did you see the kitty send-off near the paging? I’m hoping to add some more cute fun things eventually

New blog design

Hello, it’s new design day Another fun thing is that I’ve also updated the backend, from using Gatsby to Astro! I’m hoping this fixes a few of the old issues I had on my blog, such as pages being cached inconsistently If you see anything funky going on with the site for now though, it’s probably from this upgrade!

With other technical improvements, I refactored a bunch of my old components and feel much better about how much more efficient they (hopefully) are now! Looking at your old code is certainly a fright… There’s still a few issues here and there, but I think most of the site should be working.

Working with Astro has been really fascinating - it’s similar, but also very different from Gatsby. I’ll make another post eventually about a bit more backend notes because I find that web stuff like this sometimes doesn’t have easy-to-find solutions once you take a step outside of the guide

The old design here was not really inspired by anything but wanting a clean and uncluttered layout. As you know, I love to clutter up my posts by yappin so I wanted the layout to be simpler to compensate

The new layout is a little ‘old web’ styled since I love the simplicity of the web during those days I did make a few more artistic choices such as stylizing headers in a way where they are not as readable, which is not usually a choice I make, but I’ll try it out as something different.

Hehe