Jekyll QuickStart
Host on GitHub
Create a New Repository
===
Go to your https://github.com and create a new repository named
USERNAME.github.com
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
- install ruby and jekyll
===
1
2
| $ sudo yum install -y ruby ruby-devel
$ gem install jekyll rake rdiscount
|
- Run Jekyll Locally
===
1
2
| $ cd USERNAME.github.com
$ jekyll serve
|
- 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
|
Author
Hangbin Liu
LastMod
2018-12-02
(a90227f)