Hacker News new | ask | show | jobs
by scambier 1600 days ago
> Static sites are nice from a deployment perspective, but CMS's make a lot of things easier than static site generators do. Seems like there's room to have the best of both worlds.

A few years ago I wrote a static generator for Ghost. The workflow was the following:

- A Ghost instance runs on my raspberry pi

- I log into it to write content, and save

- A hook is triggered by the content update (this is a native Ghost feature), that sends an HTTP request to a local ExpressJS instance

- A script downloads the whole dynamic Ghost site as static files, fixes the links, and then publish them somewhere

It was _very_ brittle but it worked for my use case.