My Blog Workflow
My Blog Workflow
After researching for quite a while about the most intuituve and straightforward way of creating a blog with minimal overhead and maximum control, I finally settled on using Hugo as my blog engine.
I then store everything in a Github repo (which is private for now, until I really got the hang of things), which in turn is connected to Cloudflare Pages. Every time I commit a change to the main branch of that repo, it will automatically build the page and deploiy it from Cloudflare. It really is magic!
Let’s take a closer look at how it works:
I run Hugo locally on my Windows machine. After setting up styling and themes, all I need to do is write these posts as markdown content. Unlike other Hugo deployments, there is actually no need to build the site locally. Instead, I commit my changes to my Github repo.
The repo is then in turn connected to Cloudflare Pages, where the deployment and build is done automatically when there is a new commit to the main github branch. That means that I can work on changes both locally, but also push them to a separate remote branch without the page being rebuilt. When the changes are ready, I merge them into the main branch, and the page is updated automatically. Nice!