The Ultimate Jekyll GitHub Pages Guide 2024: Step by Step Tutorial

Logan Jul 13, 2026

Jekyll is a static site generator that's perfect for creating faster, more secure websites. When combined with GitHub Pages, it simplifies hosting, making it an excellent choice for personal and project websites. This comprehensive guide will walk you through the process of setting up, configuring, and deploying a Jekyll site to GitHub Pages.

Get Started With GitHub Pages (Plus Bonus Jekyll)
Get Started With GitHub Pages (Plus Bonus Jekyll)

By the end of this guide, you'll have a fully functional Jekyll site hosted on GitHub Pages, ready to showcase your projects, blog posts, or even serve as a static portfolio. Let's dive in!

Create a Free Blog with Jekyll and GitHub Pages - [Step-by-Step Guide]
Create a Free Blog with Jekyll and GitHub Pages - [Step-by-Step Guide]

Prerequisites

Before starting, ensure you have the following prerequisites installed on your local machine:

Git & GitHub Commands Cheat Sheet πŸ’» | Essential Developer Guide
Git & GitHub Commands Cheat Sheet πŸ’» | Essential Developer Guide

1. Ruby: Jekyll is built with Ruby, so you'll need it installed to run Jekyll locally. You can download it from the official Ruby website.

2. Gem: This is Ruby's packaging system. It comes bundled with Ruby, so you don't need to install it separately.

Create a Free Blog with Jekyll and GitHub Pages - [Step-by-Step Guide]
Create a Free Blog with Jekyll and GitHub Pages - [Step-by-Step Guide]

Step-by-step guide

  • Initialize a new Git repository and install Jekyll as a gem:

mkdir my-jekyll-site & cd my-jekyll-site
gem install jekyll bundler

  • Create a new Jekyll site with a default template:

  • Git & GitHub Basics Every Engineering Student Should Know πŸ’»πŸš€
    Git & GitHub Basics Every Engineering Student Should Know πŸ’»πŸš€

    jekyll new .

  • Create a new branch for GitHub Pages:

  • git checkout --branch gh-pages

    Configuring your Jekyll site

    Git and GitHub Commands PDF - Complete Guide for Beginners to ProπŸš€πŸ’»  #git #command #code
    Git and GitHub Commands PDF - Complete Guide for Beginners to ProπŸš€πŸ’» #git #command #code

    Now that your Jekyll site is set up, let's configure it for use with GitHub Pages.

    Open the _config.yml file in your project root and add or modify the following lines:

    JEKYLL AND HYDE
    JEKYLL AND HYDE
    9 GitHub Commands Every Beginner Developer Should Know
    9 GitHub Commands Every Beginner Developer Should Know
    a black and white drawing of a man in a top hat with a woman behind him
    a black and white drawing of a man in a top hat with a woman behind him
    The Developer's Guide to Cursor and Github Copilot
    The Developer's Guide to Cursor and Github Copilot
    I know what you are, Jekyll… πŸ‘€
    I know what you are, Jekyll… πŸ‘€
    Jekyll and Hyde character analysis DR JEKYLL
    Jekyll and Hyde character analysis DR JEKYLL
    grok prompt commands - Google Search Google Search
    grok prompt commands - Google Search Google Search
    the curious case of dr jekyl and mr hyde info sheet from harry potter
    the curious case of dr jekyl and mr hyde info sheet from harry potter
    GitHub Education
    GitHub Education
    Nerd Cat Image, Nerd Cat Cartoon, Github Green Squares, Gamer Cat Art, Github Logo Design, Geek Cat Programmer, Github Beginner Guide, Geek Cat Logo Design, How To Parse Github Json
    Nerd Cat Image, Nerd Cat Cartoon, Github Green Squares, Gamer Cat Art, Github Logo Design, Geek Cat Programmer, Github Beginner Guide, Geek Cat Logo Design, How To Parse Github Json
    a black and white drawing of two cartoon characters
    a black and white drawing of two cartoon characters
    the cover to jekyll and hyde, featuring an image of a man in a top hat
    the cover to jekyll and hyde, featuring an image of a man in a top hat
    two cats standing next to each other with the caption, now i know that now and forever they'll never be able to separate jekyl form hyde
    two cats standing next to each other with the caption, now i know that now and forever they'll never be able to separate jekyl form hyde
    the strange case of dr jekyl and mr hyde by robert louis stevens illustrated by john beaman
    the strange case of dr jekyl and mr hyde by robert louis stevens illustrated by john beaman
    Page 10
    Page 10
    JEKYLL, ARE YOU SMUGGLING PUMPKINS-?
    JEKYLL, ARE YOU SMUGGLING PUMPKINS-?
    Utterson
    Utterson
    two black and white typefaces with the word jekylynder written on them
    two black and white typefaces with the word jekylynder written on them
    JEKYLL AND HYDE
    JEKYLL AND HYDE
    a drawing of a woman sitting on the ground with her head in her hands and another person laying down next to her
    a drawing of a woman sitting on the ground with her head in her hands and another person laying down next to her

    remote_theme: minima/minima
    markdown: kramdown
    plugins:
      - jekyll-seo-tag

    Configuration options vary depending on the theme you're using. Ensure you consult the theme's documentation for any additional configurations.

    Setting up GitHub Pages

    • Push your local changes to GitHub:

    git add .
    git commit -m "Initial commit"
    git push origin gh-pages

  • Set up GitHub Pages:

    1. Go to your repository's settings page on GitHub.
    2. Scroll down to the "GitHub Pages" section and select the main branch (e.g., gh-pages).
    3. Click "Save".

    Customizing your site

    Now that your site is live on GitHub Pages, let's customize it with your content.

    Jekyll uses a specific folder structure. Here's what each folder does:

    • _includes: Contains reusable pieces of content like headers, footers, or navigation menus.
    • _layouts: Defines the structure of your site, like the overall page structure, or specific page layouts.
    • _posts: Stores the Markdown files for your blog posts. Jekyll auto-generates post dates, categories, and tags based on the file's front matter.

    Creating new blog posts

    • Create a new Markdown file in the _posts folder with a filename in the format YYYY-MM-DD-title.md (e.g., 2022-01-01-hello-world.md).

  • Add the post's front matter at the top of the file:

  • ---
    title: "Hello, World!"
    date: 2022-01-01 00:00:00 +0000
    categories: jekyll update
    ---

  • Write the content of your post below the front matter.

  • Commit and push your changes:

  • git add .
    git commit -m "Add new blog post"
    git push origin gh-pages

    Your post should now be live on your GitHub Pages site. Jekyll will automatically generate the post's URL based on the title and date you specified in the front matter.

    As a final touch, consider exploring Jekyll's rich collection of plugins and themes to further customize and enhance your site. And remember, practice makes perfect – the more you work with Jekyll, the more comfortable you'll become with its syntax and features. Happy coding!