Prerequisite:
- Ruby
brew install rbenv
rbenv init
rbenv install <version>
rbenv global <version>
- Bundler
gem install bundler
git clone ...
bundle install
bundle exec jekyll serve
preview site at: http://localhost:4000
under _posts folder add new file with the convention:
YEAR-MONTH-DAY-title.md
all posts must start with the following header:
---
layout: post
title: "some title"
---
Drafts are posts which are not ready to publish. In order to create one, add a markdown file under _drafts folder.
In order to preview drafts, run:
bundle exec jekyll serve --drafts