So, I was bored again with my current blogging framework and decided to move to Github Pages. I’ve made a couple of research and Octopress is apparently the way to go and is based on Jekyll. So how does one setup a Github Pages site with Octopress?
If you don’t have a Github account, do it!
- Create a repository with $YOUR_USERNAME_OR_ORGANIZATION.github.io
- Install git, ruby, bundle and rake.
- Make sure that your ruby version is 1.9.3. I’m currently using RVM.
git clone git://github.com/imathis/octopress.git octopress
cd octopress
bundle install
rake install
rake setup_github_pages
and enter your repository details- Make sure that origin points to your local repository. You can double check with
git remote -v
- Modify your _config.yml file
rake generate
rake deploy
- Wait for a couple of minutes and your blog will be up on yourdomain.github.io
- To change your theme, go to the Octopress Themes page and follow the instructions.
- Once you’re done for the day, don’t forget to commit and push your changes with
git push origin source