Build a Jekyll environment in Ubuntu

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.