26/01/2026
My first blog - a small intro about how I actually run this website
Hello and welcome to my first blog page. I wrote a whole static pages generator, just for this. It is very very simple and only does what I need it to do, which is take a html template, and generate several pages for it based on available blogs. So every page in my website is based off the same template, and that makes it easy for me to just update it once, and update everywhere. Perfect for my little use case, I suppose :P.
I chose Go to do it, because it's just a simple language. You can have a look at the code on the source code of this website, and you'll just see a ~130 line main.go, and a static folder: static is where static files are (such as styles.css). I use an array in the main.go to store everything... that way it's all in one place, and I can just generate the whole server with one file and one command. Currently, the Go file copies the static directory -> srv, then generates all blogs, the blog landing page and the index page. I can then just deploy it with rsync, which works fantastically.
I might make this even simpler by putting styles.css and template.html into this main.go file as well.