How to write a post
Steps:
- Create post(s) with .md format at zenbro.github.io/_posts
- Run the bash
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#! /bin/bash echo inputCommitMessage read commit git clone https://github.com/YuchaoZheng88/zenbro.github.io.git cd zenbro.github.io git submodule init git submodule update cd YuchaoZheng88.github.io/ git checkout main cd .. bundle update jekyll build -d YuchaoZheng88.github.io cd YuchaoZheng88.github.io/ git add . git commit -m "$commit" git push cd .. git add . git commit -m "$commit" git push
- push YuchaoZheng88.github.io, then push main zenbro.github.io