- Install Ruby and Gem.
- Run
Gem install jekyll - Git clone the repository.
- Go to the repository folder.
- Run
bundle installto install the dependencies.
- Run
bundle exec jekyll serveto start the local server. - Write posts in Markdown format and save them in
_postsfolder. - 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 buildto build the static files. - Commit the changes and push to the repository.
- Write posts in Markdown format and save them in
_draftsfolder. - Before moving the post md file to
_postsfolder, use thepost_process.pyunder_draftsfolder to process the md file, the processed md file will be saved in_postsfolder. - Run
bundle exec jekyll serveto start the local server. - Preview the post in
http://localhost:4000/.
-
Add
hidden: trueto a post's front matter to hide it from:/postslisting- Atom feed (
/atom.xml) - Related posts
- Sidebar pages list
-
Archived posts are still available via direct URL. To browse them, use
/archive/.