DEV Community

Peiwen Li
Peiwen Li

Posted on

GitHub Pages with Jekyll: Initialisation

Originally written on 2020-01-26. DEV's displayed publication date reflects this archive migration.

Simpler than I thought to set up a jekyll static website up and running with github pages:

  1. clone a repo created with the name: <githubUserName>.github.io

  2. Install Ruby, Bundler

   $ sudo snap install ruby --classic
   $ gem install bundler
Enter fullscreen mode Exit fullscreen mode
  1. Create Jekyll in the repo directory
   $ jekyll new .
   # Creates a Jekyll site in the current directory
Enter fullscreen mode Exit fullscreen mode
  1. Configurations: open Gemfile which was just created and follow the instructions

img

  1. $ bundle update if gem 'rouge' can't be found

  2. $ bundle exec jekyll serve Run the server locally and edit the content before committing and pushing the ropo

  3. git add, commit, push

Top comments (0)