GitHub Jekyll Tutorial: Build Static Sites Like a Pro

Logan Jul 13, 2026

Embarking on your journey to master static site generators? Jekyll, a popular choice, integrates seamlessly with GitHub Pages, offering a robust platform for creating and maintaining blogs and personal websites. This comprehensive guide walks you through the process of setting up a Jekyll site on GitHub, by harnessing the power of GitHub Pages.

HTML, HTML/CSS Tutorials in Web Design | Envato Tuts+
HTML, HTML/CSS Tutorials in Web Design | Envato Tuts+

Before diving into the depths of Jekyll, ensure you're comfortable with fundamental Git and GitHub processes. This tutorial assumes a basic understanding of using the command line, Git branches, and pushing changes.

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

Setting Up Your Jekyll Environment

To commence, initialize a new GitHub repository. Name it something reflective of your project, such as 'yourusername.github.io' (replace 'yourusername' with your actual username).

GitHub - 0xk1h0/ChatGPT_DAN: ChatGPT DAN, Jailbreaks prompt
GitHub - 0xk1h0/ChatGPT_DAN: ChatGPT DAN, Jailbreaks prompt

Next, clone this repository to your local machine:

git clone https://github.com/yourusername/yourusername.github.io.git

Build A Blog With Jekyll And GitHub Pages — Smashing Magazine
Build A Blog With Jekyll And GitHub Pages — Smashing Magazine

Installing Jekyll Locally

Install the Jekyll gem using Ruby's package manager, gem:

gem install jekyll

GitHub - programminghistorian/jekyll: Jekyll-based static site for The Programming Historian
GitHub - programminghistorian/jekyll: Jekyll-based static site for The Programming Historian

Verify the installation with:

jekyll -v

You should see the installed version displayed.

an image of a computer screen with some type of programming program on it's side
an image of a computer screen with some type of programming program on it's side

Configuring Your Jekyll Site

Navigate into your newly cloned repository and create a new file named _config.yml. This file is the hub for Jekyll's configuration settings. Add the following basic configurations:

GitHub CLI Hands on
GitHub CLI Hands on
the computer screen with an error message on it that reads, copplot command - line interface
the computer screen with an error message on it that reads, copplot command - line interface
How to Upload Jekyll to Github Page
How to Upload Jekyll to Github Page
How to Host Your Blog for Free with Jekyll and GitHub Pages - Make Tech Easier
How to Host Your Blog for Free with Jekyll and GitHub Pages - Make Tech Easier
10xDEV - Blog
10xDEV - Blog
a person in a cat costume and goggles with an octopus on their back,
a person in a cat costume and goggles with an octopus on their back,
I know what you are, Jekyll… 👀
I know what you are, Jekyll… 👀
Jekyll and Hyde!
Jekyll and Hyde!
Design a Fancy GUI for Your Project
Design a Fancy GUI for Your Project
Enfield stop you’re gonna give the poor man a heart attack 😭
Enfield stop you’re gonna give the poor man a heart attack 😭
JEKYLL, ARE YOU SMUGGLING PUMPKINS-?
JEKYLL, ARE YOU SMUGGLING PUMPKINS-?
Jekyll Jekyll Hyde Jekyll Hyde Hyde Jekyll!!!
Jekyll Jekyll Hyde Jekyll Hyde Hyde Jekyll!!!
two black and white typefaces with the word jekylynder written on them
two black and white typefaces with the word jekylynder written on them
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
jekyll and hyde maxing
jekyll and hyde maxing
Jekyll and Hyde
Jekyll and Hyde
Syabu 💔 — Jekyll
Syabu 💔 — Jekyll
a man holding a sign that says help i can't stop talking about jekyll and hyde
a man holding a sign that says help i can't stop talking about jekyll and hyde
an image of a computer screen with the text'example screenshot'on it
an image of a computer screen with the text'example screenshot'on it
sillies
sillies

```yaml remote_theme: minima plugins: - jekyll-feed ```

This sets the theme to the default 'Minima' and enables the feed plugin for generating an RSS feed.

Creating and Pushing Content

Jekyll organizes content into files in the root directory, using a convention-over-configuration approach. Files ending in .md are interpreted as Markdown, while HTML files are used as-is. Create an index.md file for your homepage content:

```markdown --- layout: home --- Welcome to my Jekyll site! ```

Update your _config.yml to specify the default layout for your site:

```yaml remote_theme: minima plugins: - jekyll-feed markdown: kramdown defaults: - scope: path: "" # an empty string here means all files in the project type: "posts" # previously `pages` in Jekyll 2.2. values: layout: "post" # previously this was 'page' in Jekyll 2.2. permalink: "/blog/:year/:month/:day/:title/" ```

Begin pushing content to your repository and view your live site at .

Using GitHub Pages

To serve your site, add a new file .github.io in your repository root, with the following contents:

```yaml bladder: source: [] branch: master cname: yourusername.github.io ```

Now, every time you push to the master branch, GitHub Pages will build and serve your Jekyll site.

Customizing Your Site's Theme

Change your site's theme by modifying the 'remote_theme' property in your _config.yml file. Consult the official GitHub Pages themes documentation for available themes and customization options.

With a solid foundation in place, start experimenting with different layouts, plugins, and customizations to make your Jekyll site uniquely yours. Happy coding, and may your Jekyll adventure be filled with commitment and success!