Introduction to Jekyll

Static sites:

  • Jekyll (Ruby)
  • Hugo (Go)
  • Gatsby (Javascript)
  • Dynamic sites (CMS):

  • WordPress
  • Drupal
  • Wix
  • Squarespace
  • Benefits of static sites:

  • Speed
  • Simplicity
  • Security
  • Flexibility
  • What do static sites look like?

    What do static sites look like?

    What do static sites look like?

    What do static sites look like?

    Static site generators

    We will be focusing on Jekyll today, but there are many other static site generators out there — the page linked below lists almost 300 of them!

    staticgen.com

    Jekyll-Now

    For this section of the workshop we will be using a special version of jekyll called jekyll-now which has been set up to be immediately usable in a few easy steps:

    Jump to the jekyll-now project page.

    Click on the Fork button at the top right corner of the jekyll-now project page (see screenshot below which has the button highlighted in red):

    Fork button

    After a few moments, you should see the project page has been copied over to your account (your username will appear in the top left corner of the screen, before the project name, as in the screenshot below):

    Repo name

    Click on the button labelled Settings in the row of links near the top of the page (see screenshot below with the button highlighted in red):

    Settings button

    Once the Settings page loads, scroll all the way down to the bottom of the page and look for a section called GitHub Pages.

    GitHub Pages Source

    You should now see a message that GitHub Pages is disabled. Click on the drop down menu (highlighted below) and select the master branch (highlighted in the image below):

    GitHub Pages Select Branch

    After a moment, the page should reload – you must scroll down again to the bottom of the page to confirm that the GitHub Pages site has been published successfully. If everything has gone well, there should be a message indicating the URL of your new website (see highlighted example below):

    GitHub Pages Select Branch

    Structure of a GitHub Pages URL

  • yourname.github.io/jekyll-now
  • Structure of a GitHub Pages URL

  • yourname.github.io/jekyll-now
  • Structure of a GitHub Pages URL

  • yourname.github.io/jekyll-now
  • Your new site

    You should now be able to visit your site at the URL you got from the last step:

    Customizing your site

    You can find a wide variety of free themes ready to use with the same fork and publish workflow we have practiced today at the following website:

    jekyllthemes.io

    Customizing your site

    More (user-contributed) themes can be found here:

    jekyllthemes.org