Window under Jekyll+github to build your own blog

Source: Internet
Author: User
Tags using git

1. Install git

1-1. Download Git, here is an address: http://git-scm.com/downloads

1-2. Install, all the way next

1-3. Configure the GIT environment variable to add the location of bin in the Git installation path Xx\git\bin and Git-core xx\git\libexec\git-core to the PATH environment variable

2. Installing Jekyll

2-1. Install rubyinstallers,:http://rubyinstaller.org/downloads/, note: The installation process tick add to path adds it to the environment variable

2-2. Install ruby Development kit,:http://rubyinstaller.org/downloads/, which is a compressed package that can be extracted using

2-3. After decompression, enter the directory, perform the Ruby DK.RB init initialization environment, associate the Devkit development package with the Ruby Runtime environment, generate a file config.yml after execution, and add the Ruby installation path

2-4. Next command line execute Ruby dk.rb install

2-5. Change the ruby download source to the domestic ruby China image

Removal: Gem sources--remove https://rubygems.org/

    Added: Gem sources-a https://gems.ruby-china.org/

    Make effective: Gem Sources-l

2-6. Then the command line executes the gem install Jekyll

  2-7. Command line execute gem install bundler

3. Create a local blog

3-1. Then above, command line execution Jekyll new blogs Create local blog with directory name Blogs

3-2. Command line Execution Jekyll Server starts the Jekyll server with the following results: Browser output http://127.0.0.1:4000/to see results

Please add the following to your gemfile-avoid polling for changes:
Gem ' WDM ', ' >= 0.1.0 ' if gem.win_platform?
auto-regeneration:enabled for ' e:/ruby/blogs '
Configuration file:e:/ruby/blogs/_config.yml
Server address:http://127.0.0.1:4000/
Server running. Press Ctrl-c to stop.

4.github

4-1. Create a GitHub account, add SSH authentication, this self-Baidu, and then create a warehouse, the name is fixed as [username].github.io, using git upload

The third step of the blogs blog to the repository, you can access your blog by https://[user name].github.io/blogs

Window under Jekyll+github to build your own blog

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.