2
安裝Jekyll-Bootstrap:
git clone /plusjade/jekyll-bootstrap.git username.github.io
cd username.github.com
git remote add origin /username/username.github.io.git
git push origin master
註意:將username替換為妳的用戶名。
3
這樣基本博客就創建好了。
END
在本地運行
1
安裝jekyll
gem install jekyll
2
運行:
cd USERNAME.github.io
jekyll serve
3
註意,如果發現類似下列錯誤:
Dependency Error: Yikes! It looks like you don't have jekyll-sitemap or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-sitemap' If you run into trouble, you can find helpful resources at /help/!
請安裝bundler:
gem install bundler
然後安裝bundle:
bundle install
END
內容更新
1
添加post:
rake post title="Hello World"
2
增加頁面(page):
rake page name="pages/about.md"
可以修改pages/about.md內容
3
發布:
$ git add .
$ git commit -m "Add new content"
$ git push origin master
END
安裝模板
1
博客外觀可以通過模板來改觀,妳可以下載現成的模板,甚至創建自己的模板。
rake theme:install git="/jekyllbootstrap/theme-the-program.git"