By
Vika Zhou
Updated:
Content of this blog is base on Jekyll Quick Start
Run Locally
- First all, need to install tool
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"
|
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
|