Jekyll on GitHub in 10 seconds

Jekyll on GitHub in 10 seconds

Static website is secure and fast by definition. Did I mention it's also free?

Today I will show you very straightforward way to setup Jekyll on GitHub Pages. It’s so easy I wonder why something like this is not available on Jekyll site.

Prerequisities to save a lot of time:

  1. Login to your GitHub account or create one.
  2. Download and install GitHub client for Mac.
  3. If you don’t already have Xcode, download and install Xcode Command-Line Tools, here is how.
  4. Whenever I use zavrelj in this guide, use your own GitHub account name instead.

Ready? Fine. Let’s get to it:

  1. Fire up your browser and go to your GitHub account.
  2. Create new repository
  3. Name it zavrelj.github.io
  4. Hit “Create repository” button

  1. On new page hit “Set up in Desktop” button

  1. GitHub for Mac will automatically start now asking you where to clone your repository. Locate ~/GitHub and hit “Clone” button.
  2. Fire up you terminal and type:

    sudo gem install jekyll cd ~/GitHub/zavrelj.github.io jekyll new .

Back to GitHub for Mac client where you have already new files waiting for commitment.

  1. Write some description and hit “Commit to master” button.
  2. Hit “Publish/Sync” button
  3. Back to your browser and go to http://zavrelj.github.io
  4. Welcome to Jekyll!