Ruixiang Du

Tips for the Use of Octopress

In the past two days, I transferred my blog from several other places to Github Pages with Octopress. Since I’m a stranger to web development, I felt rather lost at the very beginning. But after you finish it, you will find it’s not that difficult, at least not so hard to get a less customized Octopress-based blog. There are many good tutorials on the Internet so I see no point to write a new one. In this post, I mainly gather some resources I feel useful to finish the work.

##Setup

####Follow official tutorial to finish installation

  • Install GIt
  • Install Ruby
  • Clone Octopress repository from Github
  • Install Dependencies

####Deploy blog to Github

  • Set up github pages: http://pages.github.com/
  • Deploy to github repository: http://octopress.org/docs/deploying/github/

####Set up a personal domain

####Set up Octopress on multiple computers

##Customization

##Write Blog Posts

####Useful Resources:

####Basic Commands: Create a new blog post:

rake new_post["title"]

Create a new page:

rake new_page["title"]

Generate blog:

rake generate

Preview blog:

rake preview

Deploy blog to remote github repository (master branch)

rake deploy

Push source folder to remote github repository (source branch)

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