The repo for my personal blog at https://www.RobertJacobson.dev/. I switched from Jekyll to Hugo in February 2024.
Required initial setup:
brew install hugo
One-time setup is also required for GitHub repo.
hugo server --buildDrafts --disableFastRender
hugo new content posts/a-new-post.md
hugo
Pushing to GitHub triggers a GitHub Action that deploys changes automatically.
git push
Gotcha: CNAME file
Custom domains are stored in a CNAME file in the root of your publishing source.
GitHub creates the CNAME file when you set the custom domain name in the repo settings. Or keep the file in the root of the repo locally.