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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help