Setting Up a Github Pages Jekyll Blog
I don't recommend that anyone blog the way I do. Git and Jekyll are both fairly user hostile but I found myself having to do this the other day so i thought I'd document it at least for myself.
Note the First: This assumes that you have a working local ruby installation and the Jekyll gem installed.
Note the Second: These instructions are rough – there's a fair bit of jiggery / pokery going on here and I may have missed a step. Dust off your Google Fu, sacrifice a goat and pray. That's usually how I setup a new blog.
Things in bold or otherwise emphasized are what you type.
- Do a jekyll new blogname and create a new blog. blogname is how this is going to appear online so get that name right.
- Change into that directory. I don't know what it is so the only help I can give you is cd.
- In that directory, do a git init.
- On github create a new repository named blogname (in step 1).
-
On your local machine, in that directory, do a:
git remote add origin git@github.com:fuzzygroup/blogname.git
- Do a bundle install to setup all the code for your Jekyll blog.
- Edit _config.yml and setup your metadata.
- Do a git add .
- Do a git commit -m "initial commit"
- Do a git branch gh-pages.
- Do a git co gh-pages.
- Do a git push origin gh-pages
Try and view it on github. I know that's not very specific and I apologize; a bit rushed this morning.