I've been pretty obsessed with Go lately. I had an old blog that was created using Jekyll + Github Pages, but I wanted something with less "batteries included" for my website. I also wanted to have an active count of likes and views for my posts, as this would motivate me.
I decided to use Go to build a Hybrid Site Generator. Not sure if that is an actual term, but let me define it:
- A hybrid site generator is like a Static Site Generator (SSG), but with dynamic components such as likes and views.
My Go app has 2 components:
- The Server, which serves pre-built HTML, CSS, and JavaScript. Also listens for and serves likes and views.
- The Builder, which takes data from markdown .md files, and generates static sites, run only once at build time.
I had a really fun time learning how to create this in Go.
I wrote more in-depth about it here: Go Blog
Have any thoughts or feedback? By the way, I'm considering adding comments as well :)
Top comments (0)