zz-jason / zz-jason.github.io

zz-jason's blog source

Home Page:https://zz-jason.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zz-jason.github.io

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.

Download the source and submodules

git clone --recursive https://github.com/zz-jason/zz-jason.github.io.git

New post

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

Preview changes

cd zz-jason.github.io
docker run --rm -it -v $(pwd):/src -p 1313:1313 klakegg/hugo:0.80.0 server

Publish post

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

About

zz-jason's blog source

https://zz-jason.github.io


Languages

Language:CSS 99.9%Language:HTML 0.1%