Jekyll is a set of blog frameworks. You can build a personal blog by using its and GitHub pages. The advantages and installation of git are not mentioned much. It mainly introduces how to install and configure Jekyll In ubuntu.
References
Http://pages.github.com/
Http://jekyllbootstrap.com/
1. Create a blog project on GitHub
Create a new project named username.github.com on the gituhub dashboard. Note that username is your GitHub account. You must use this name for this project. GitHub automatically creates a page named username.github.com, parse your files in this project according to the Jekyll template.
2. Install Jekyll-Bootstrap
Download the Jekyll template and upload it.
$ Git clone https://github.com/plusjade/jekyll-bootstrap.git username.github.com
If you encounter a prompt such as an HTTPS certificate verification error, add sudo. However, if sudo needs to use chgrp and chown to change the user back, it will be very troublesome in the future.
$ CD username.github.com
$ Git remote set-URL origin git@github.com: username/username.github.com. Git
$ Git push origin master
If everything is normal, you will receive an email from GitHub within a few minutes notifying you that the page has been created. You can access it through username.github.com.
3. debug Jekyll locally
In fact, all the modifications can be uploaded directly to GitHub to help the server parse the webpage to observe the effect, but if you want to debug locally, you need to install a set of Jekyll
$ Sudo apt-Get install rubygems1.8 rake
$ Sudo gem install Jekyll
Add the following lines to/etc/profile to change the environment variable, or modify the environment variable accordingly.
Path = $ path:/var/lib/gems/1.8/bin
Export path
After saving and exiting, the source/etc/profile takes effect.
Go to the project directory
$ Jekyll -- server can access your blog through http: // localhost: 4000.