https://zz-jason.github.io is my personal blog, it's a Hugo generated static site. This readme is a reminder to me for how to set-up environment and write blogs.
git clone --recursive https://github.com/zz-jason/zz-jason.github.io.git
cd zz-jason.github.io
docker run --rm -it -v $(pwd):/src -p 1313:1313 klakegg/hugo:0.80.0 new posts/your-post-name.md
cd zz-jason.github.io
docker run --rm -it -v $(pwd):/src -p 1313:1313 klakegg/hugo:0.80.0 server
The GitHub Action will automatically generate the static site, just push the changes to this repo and trigger the GitHub Action.
git commit -asm "new blog"
git push