Building a Hybrid Site Generator with Go + SQLite
dev.to·10h·
Discuss: DEV
Flag this post

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 lear…

Similar Posts

Loading similar posts...