momoto.github.io

OctopressをGithub Pagesにデプロイ

要件

Octopressのセットアップ

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

$ gem install bundler
$ bundle install

$ rake install
$ rake setup_github_pages

  Enter the read/write url for your repository
  (For example, 'git@github.com:your_username/your_username.github.com)
  Repository url: 

$ rake generate
$ rake deploy

“source”ブランチに、ブログのソースを残す

$ git add .
$ git commit -m 'your message'
$ git push origin source

記事を投稿

$ rake new_post[“hello, world”] $ vi source/_posts/YYYY-MM-DD-hello.world.markdown

---
layout: post
title: "hello, world"
date: YYYY-MM-DD hh:mm
comments: true
categories:
---

hello, world 

$ rake generate $ rake deploy

参考