Jekyll GitHub Pages Example: Step-by-Step Guide for Beginners

Logan Jul 13, 2026

If you're a developer seeking to host a static blog or portfolio site, GitHub Pages combined with Jekyll, a static site generator, is an excellent and fuss-free solution. This duo enables you to focus on writing and content creation while the tech pillar handles the rest. Let's dive into a practical example, exploring how to set up and deploy your Jekyll site on GitHub Pages.

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

Before we begin, ensure you have a solid understanding of Git and GitHub. You'll also need Jekyll installed on your local machine. If not, follow the official Jekyll installation guide to get started.

a web page with an image of two people and one is giving the thumbs up
a web page with an image of two people and one is giving the thumbs up

Creating a Jekyll Site Locally

To create a new Jekyll site, navigate to your desired project directory in the terminal and run the following command:

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

jekyll new my-site

my-site is the name of your site's folder. Once created, navigate into this folder to begin working on your site.

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]

Understanding the Site Structure

The my-site folder now contains several files and directories. Here's a brief overview:

  • _config.yml: Configures your site's settings.
  • index.md: The default homepage content.
  • _includes, _layouts, _posts: Directories for partials, layouts, and posts, respectively.
Aesthetic GitHub Profile README by https://github.com/alan-thomas-shaji
Aesthetic GitHub Profile README by https://github.com/alan-thomas-shaji

Customizing your Site

Start customizing your site by updating index.md and _config.yml. To create new posts, simply add markdown files to the _posts directory following the correct naming convention - YYYY-MM-DD-title.md.

Setting Up GitHub Pages and Connecting Jekyll

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

Once satisfied with your local setup, it's time to connect GitHub Pages to deploy your site.

Initializing Git and Push to GitHub

Jekyll cheat sheet · Web Dev Topics · Learn the Web
Jekyll cheat sheet · Web Dev Topics · Learn the Web
I know what you are, Jekyll… 👀
I know what you are, Jekyll… 👀
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
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
Jekyll Themes – a curated directory
Jekyll Themes – a curated directory
JEKYLL AND HYDE
JEKYLL AND HYDE
GitHub - 0xk1h0/ChatGPT_DAN: ChatGPT DAN, Jailbreaks prompt
GitHub - 0xk1h0/ChatGPT_DAN: ChatGPT DAN, Jailbreaks prompt
Utterson
Utterson
black and white photograph of a young man
black and white photograph of a young man
Jekyll and Hyde duality mind map
Jekyll and Hyde duality mind map
Syabu 💔 — Jekyll
Syabu 💔 — Jekyll
#git #github #versioncontrol #interviewpreparation #softwaredevelopment #devops #learningjourney #sdet #qatesting | Satya Tharun Manikanta Nalle
#git #github #versioncontrol #interviewpreparation #softwaredevelopment #devops #learningjourney #sdet #qatesting | Satya Tharun Manikanta Nalle
GitHub - jj-vcs/jj: A Git-compatible VCS that is both simple and powerful
GitHub - jj-vcs/jj: A Git-compatible VCS that is both simple and powerful
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
JEKYLL AND HYDE
JEKYLL AND HYDE
the poster for dr jekyll and mr hyde is shown in black and white
the poster for dr jekyll and mr hyde is shown in black and white
How to Showcase Your GitHub Project the Right Way
How to Showcase Your GitHub Project the Right Way
Pin; THATBARBIEX🦋 #pinterestthatbarbiex
Pin; THATBARBIEX🦋 #pinterestthatbarbiex
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
Dr. Jekyll
Dr. Jekyll

First, navigate to your project directory and initialize Git. Then, push your changes to a new repository on GitHub:

git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/yourusername/your-repo-name.git
git push -u origin main

Setting GitHub Pages

On GitHub, navigate to your repository's settings. Scroll down to the Pages section. Select the main branch as the source and click Save. Your GitHub Pages URL will be displayed once your page is live.

Now, whenever you push updates to your main branch, GitHub Pages will automatically rebuild and redeploy your Jekyll site. This seamless integration allows you to focus on content creation while GitHub handles the rest.

Embracing Jekyll along with GitHub Pages opens up a world of possibilities for managing your personal or professional website. Start exploring, customizing, and deploying to showcase your unique story to the world.