文章目录
  1. 1. Run Locally
  2. 2. Create content
  3. 3. Publish

Content of this blog is base on Jekyll Quick Start

Run Locally

  • First all, need to install tool jekyll
1
$ get install jekyll
  • After pull jekyll code and configured, then can start a local server. Open http://localhost:4000/ to access it.
1
2
$ cd USERNAME.github.com
$ jekyll --server

Create content

  • Create a post. New file is created under folder ./_post
1
$ rake post title="Hello World"
  • Create a page
1
2
3
$ rake page name="about.md"
$ rake page name="pages/about.md"
$ rake page name="pages/about" # will create file ./pages/about/index.html

Publish

  • Commit blog change to github
1
2
3
$ git add .
$ git commit -m "a new blog"
$ git push origin master
文章目录
  1. 1. Run Locally
  2. 2. Create content
  3. 3. Publish