Create a website using Jekyll

2 minute read

This page describes how to make personal github site step by step using Jekyll on Windows 7.

Installation (Contents)

  1. Install Ruby. (For more Information, Click Here).

  2. You will also need Jekyll, a part of Ruby Gem.

     gem install jekyll
  3. If you have a Gemfile, and add a following line if you do not see the line

     gem 'wdm', '~> 0.1.0' if Gem.win_platform?
  4. bundler is also a gem package which helps version dependency problems.

     gem install bundler
     bundle install
  5. You will also need to install a package called “nokogiri”
    (Currently, this has an issue. (i.e. ‘nokogiri requires Ruby version < 2.3, >= 1.9.2.’))
    If you have the issue, run following will solve the problem:

     gem install nokogiri -v ''
     gem install rails
     gem install nokogiri -v '1.6.8.rc3'
     In **gemfile**, include
     gem 'nokogiri', '>=1.6.8.rc3'
     gem update  
     bundle install or bundle update
  6. run following on command prompt to run the site locally.

    bundle exec jekyll serve –config _config.yml,
  7. To test step 6, type following on your browser (including baseurl):

Installation (Layout)

To change layouts, fonts, colors, assets directory needs modifications and nodejs (npm) is necessary.


npm install --save-dev node-sass -g

npm install -g

Structure (Abstract)

├── _data                      # data files for customizing the theme
|  ├── authors.yml             # name all the authors
|  ├── navigations.yml         # main navigation links
|  └── ui-text.yml             # text used throughout the theme's UI
├── _includes
|  └── ...
├── _layouts
|  └── ...
├── assets
|  ├── _scss                   # stylesheet source files
|  |  ├── vendor               # vendor SCSS partials
|  |  ├── main.scss            # imports all SCSS partials
|  |  └── ...                  # theme SCSS partials
|  ├── css
|  |  └── main.css             # optimized stylesheet loaded in <head>
|  ├── fonts
|  |  └── fontawesome-webfont  # Font Awesome webfonts
|  ├── js                      # Java Script Plugins
|  └── ...before </body>
├── images                     # image assets for posts/pages/collections/etc.
├── _config.yml                # site configuration
├── Gemfile                    # gem file dependencies
├── Gemfile.lock               # gem file dependencies
├── index.html                 # paginated home page showing recent posts
└── package.json               # NPM build scripts

Too se more detailed structure, click Here.

Github Configuration

To open an own website using github, your target repository should be named under the certain rule.


To make a change of repository name on github,

go Settings -> Option tab -> rename repository name

Test after the modification.

Domain mapping

To link with a domain, there are number of things to do. Prior to map domain, should be working.

  1. There are both paid and free domains. Whichever it is chosen, it is fine. Every domain would be configurable so that goto settings of your domain.

  2. Add github DNS provider IP to your domain and save it. Here is the DNS IP of github:
  3. In github repository, upload a new file named “CNAME”on base directory. CNAME should contain the domain name. For example, if the domain name is “”, on your CNAME, following must be written down.
  4. After above steps are done, type domain name (i.e. URL) on internet explorer.

Leave a comment