Jekyll QuickStart

Host on GitHub

  1. Create a New Repository === Go to your https://github.com and create a new repository named USERNAME.github.com

  2. Install Jekyll-Bootstrap ===

1
2
3
4
$ git clone https://github.com/plusjade/jekyll-bootstrap.git USERNAME.github.com
$ cd USERNAME.github.com
$ git remote set-url origin git@github.com:USERNAME/USERNAME.github.com.git
$ git push origin master

Run Jekyll Locally

  1. install ruby and jekyll ===
1
2
$ sudo yum install -y ruby ruby-devel
$ gem install jekyll rake rdiscount
  1. Run Jekyll Locally ===
1
2
$ cd USERNAME.github.com
$ jekyll serve
  1. Create a Post and page ===
1
2
3
4
5
$ rake post title="Hello World"
$ rake page name="about.md"
$ rake page name="pages/about.md"
$ rake page name="pages/about"
# this will create the file: ./pages/about/index.html

Publish

1
2
3
$ git add .
$ git commit -m "Add new content"
$ git push origin master