$ gem install jekyll
※ Ruby 1.9.1 が必要っぽい
Install
$ git clone https://github.com/plusjade/jekyll-bootstrap.git wcaf.github.com
※ http://wcaf.github.com の場合
jekyll bootstrap
$ cd wcaf.github.com
$ jekyll --server
http://localhost:4000 で確認できる。
themes n stuff から変更したいテーマを選択する。
選択したら、下記のようにterminal.appでコマンド入力する。
$ rake theme:install git="https://github.com/jekyllbootstrap/theme-the-program.git"
入力したらテーマ用のファイルをクローンしてくれて、自動的にインストールされる。最後に「テーマ変更しますか?」みたいなことを聞かれるので、問題なければ y を入力する。テーマ変更完了、
※ git="URL" は変更したいテーマの git URL。
『sample.html』というページを作る
$ rake page name="sample.md"
『dir』というディレクトリを作って、その中に『sample.html』を作る
$ rake page name="dir/about.md"
あるページだけテーマと違うデザインにしたいときとかに。
『_layouts』フォルダに違うデザイン用のファイルを作る(他のファイルから複製すると楽)
include させるテーマファイルのパスを書く。(ex. {% include themes/twitter/page.html %})
パスの先のファイルを編集する。
.md ファイルの先頭にある layout: に、読み込ませたいincludeファイル名を書く。
要は、『_layouts』と『_includes』にある、関連するファイルを編集して、.md の頭にどれを読み込ませたいかを書くだけ。文章わかりにくい。。
{% include themes/twitter/parts.html %}
みたいな感じで include させたいファイルへのパスを通すだけ。