- Install Ruby and Gem.
- Run
Gem install jekyll
- Git clone the repository.
- Go to the repository folder.
- Run
bundle install
to install the dependencies.
- Run
bundle exec jekyll serve
to start the local server. - Write posts in Markdown format and save them in
_posts
folder. - Make sure the post filename is in the format of
YYYY-MM-DD-Title.md
. - Preview the post in
http://localhost:4000/
.
- Run
bundle exec jekyll build
to build the static files. - Commit the changes and push to the repository.
- Write posts in Markdown format and save them in
_drafts
folder. - Before moving the post md file to
_posts
folder, use thepost_process.py
under_drafts
folder to process the md file, the processed md file will be saved in_posts
folder. - Run
bundle exec jekyll serve
to start the local server. - Preview the post in
http://localhost:4000/
.