May 5th 2019
How does this blog work? 🔗
Article size is 1.3 kB - 8.39 kB and is a 1 min read
So to get the best of both worlds - maintainability and simplicity - I do dynamically generate the blog but only at build time.
What this means that I write the posts in Markdown and check them into github in the same repo. The repository contains a NodeJS app and when a github event fires to the build server the build server runs the NodeJS app just one time which generates the site. Then it just sends the build result off to the appropriate server running nginx.