welcome to null beach

null beach

exploring a modern embedded development experience

how did I build this blog?

2/2/2024

I'm certainly guilty of trying to spin up a custom CMS and blogging platform (and failing!) before stringing a single sentence together that people might find worth reading. I decided to keep it dead simple this time, and use actix-web + tera for HTML templates. I went this route for a few reasons - I want to stick to Rust, I'm already more-or-less familiar with the Actix macro system, and I didn't want to waste time with worrying about a database or complicated deployments. One HTML page per blog post works perfectly for my use-case. The trickiest part was figuring out how to programmatically display the blog post titles. Hardcoding the file names into an array isn't my favorite solution, but for now it's fine. As for deployment, I'm not quite there yet. I'll take my time and write about it in part two.

Here's the source: github