octpress install and setup

octpress試す

Octpressの利用を始めたので、簡単にインストール方法と設定、使い方などをメモ。

github pageの初期化

mkdir username.github.com
cd username.github.com
git init

touch README.md
git add README.md
git commit -m 'first commit'

git remote add origin git@GitHub.com:username/username.github.com.git
git push -u origin master

octpressのインストール

先ほど作成した username.github.com と同じ階層にoctpressをcloneする。

git clone git://github.com/imathis/octopress.git octopress

cd octopress
gem install bundler

bundle install
Rake setup_github_pages

Rake generate
rake deploy

# 2つ一度にする
# Rake gen_deploy

記事投稿

記事の作成もコマンド1つタイトルは英語で。

rake new_post["my-new-page"]
# zshは以下のように書く
rake new_post\["my-new-page"\]

markdownの勉強にもなるし、GitHubとも仲良くなれるし、なかなかに良い仕組み。

いろいろ勉強します。

参考文献。