This blog runs on octopress.
Thanks to this great post.
- clone locally, ruby install (if needed), bundle install, and octopress install
git clone [email protected]:ThinkNear/thinknear.github.com.git
cd thinknear.github.com
rvm install ruby-2.0.0-p481
bundle install
rake install
Note: For rake install if it asks if a theme is present and to overwrite, say no as rake has already been installed.
- add post (new posts created in:
source/_posts
. More on directory layout)
rake new_post["Creating a Github Blog Using Octopress"]
- generate, preview, iterate, commit
rake generate
rake preview
git add .
git commit -m "Blog post."
git push origin source
- deploy
One time set up:
rake setup_github_pages
Then each time you want to deploy:
rake deploy
Make a post appear as a _new entry_ by setting is_newest in the yaml to true. Remove from last article.