ubuntu14.04+jekyll+github pages build a static blog
1. Jekyll Introduction
- simple : No database, No comments, no need to update the version, just care about the content of the blog.
- static : A deployable static site can be built using only Markdown (or Textile), Liquid, HTML & CSS.
- Blog Form : Custom addresses, categories, pages, blog content, and custom layout designs are the top citizens in the system.
- Jekyll Detailed Introduction
2. About Github pages
- GitHub pages is provided to each user by GitHub to introduce and showcase their projects. We can use Jekyll to generate a static website, and then deploy it on GitHub pages, leveraging GitHub's servers to run our own web site.
- Github pages Detailed information
3. Installation Environment
3.1 Installing the ruby environment
- Ruby was installed because Jekyll was developed in Ruby. The ruby environment is not installed by default on ubuntu14.04 LTS and needs to be installed on its own. The installation commands are as follows:
sudo apt-get install ruby1.9.1-dev
- After the installation is complete, enter ruby-vin the terminal and the following results indicate that the installation was successful:
ruby 1.9.3p484 (2013-11-22revision[x86_64-linux]
3.2 Installing the NODEJS environment
- The reason to install Nodejs is that Ruby's gem management requires a NODEJS environment, and after completing the ruby environment, entering gem-vin the terminal, the following results occur:
`autodetect‘
- Error message Tip: You cannot find a JavaScript environment, just enter the following command in the terminal:
sudo apt-get install nodejs
- Nodejs after the installation is complete, re-enter gem-vin the terminal, the following results indicate that the installation was successful:
1.8.23
3.3 Installing the Jekyll environment
- Enter the following command in the terminal to install the Jekyll, this process is relatively slow, and the source is related to:
install jekyll
- After the installation is complete, enter the following command in the terminal to verify the success of the Jekyll installation:
new myblog
- If the directory is created successfully, the Jekyll installation is successful and can be done later.
-Jekyll Installation details
3.4 Installing Git
- Now that you're deploying your Web site on a GitHub page, Git is a natural use, and you can install git using the following command:
sudo apt-get install git
- Enter git–versionin the terminal and the following results indicate that the GIT installation was successful:
version1.9.1
- Git installation Detailed steps
3.5 Create a new warehouse on GitHub
- Create a new warehouse on GitHub, the name of the library: Username.github.io, which is used to store the content of the blog.
- Detailed information
4. Reference
- Install Git under Linux
- GitHub pages Configuration
- Jekyll Configuration
Ubuntu14.04+jekyll+github pages build a static blog