A lot of my friends use Github to host their blogs, such as Storm, Ryan, as well as Guangming. Recently, I figured out the details to build one, all by myself. I thought I would write a post about it. BTW, it's really easy. If you prefer to Chinese, you can checkout this post.
First, you need to setup a Github account, and follow the git setup instructions.
Second, create a repository with your Github username. For me it's manageyp.github.com
Third, your can use Github tools to generate Pages automatically, here are the official documentations. But I want to setup my own styles and configurations. So I created the project manually and take hours to design the layouts. Here are the details:
git clone https://github.com/manageyp/manageyp.github.com.git cd manageyp.github.com
Four, you need to install jekyll, it's a static site generator. Following the configuration, you can setup a blog aware project.
After then, you can use the following command to spin up a jekyll server.
jekyll --server --auto
This will fire up a local server which will serve up your blog project. You should be able to browser it like this
localhost:4000
When you finished setup settings, you can push your project back to Github host.
git push origin master
Finally, your first blog is online now. You can access it via managyp.github.com.
2012-12-23