https://github.com/zz-jason/zz-jason.github.io
zz-jason's blog source
https://github.com/zz-jason/zz-jason.github.io
Last synced: about 2 months ago
JSON representation
zz-jason's blog source
- Host: GitHub
- URL: https://github.com/zz-jason/zz-jason.github.io
- Owner: zz-jason
- Created: 2020-01-25T08:07:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T10:32:09.000Z (9 months ago)
- Last Synced: 2025-03-05T19:50:29.180Z (3 months ago)
- Language: CSS
- Homepage: https://zz-jason.github.io
- Size: 141 MB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```sh
git clone --recursive https://github.com/zz-jason/zz-jason.github.io.git
```## New post
```sh
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
```sh
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](https://github.com/zz-jason/zz-jason.github.io/blob/master/.github/workflows/gh-pages.yml) 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
```