Jekyll GitHub Pages Tutorial: Build Your Site Fast

Logan Jul 13, 2026

Are you wondering how to create a stunning, static website using a simple, yet powerful engine, and host it directly on GitHub for free? Look no further! Jekyll, a popular open-source tool, can help you achieve just that. This guide will walk you through a comprehensive, step-by-step "Jekyll GitHub Pages Tutorial". By the end, you'll have your very own site live and ready to impress.

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

The beauty of Jekyll lies in its simplicity. It converts plain text files to static HTML pages, which are then served by GitHub's fast and reliable servers. No need to worry about complex web hosting, databases, or configuring servers. Let's dive in and create your first Jekyll site on GitHub Pages!

How to Setup a Free GitHub Page with Jekyll
How to Setup a Free GitHub Page with Jekyll

Getting Started: Setting Up Your Environment

Before you begin, ensure you have the following installed on your system:

HTML, HTML/CSS Tutorials in Web Design | Envato Tuts+
HTML, HTML/CSS Tutorials in Web Design | Envato Tuts+
  • Git: For version control and pushing your site to GitHub.
  • Ruby: Jekyll is written in Ruby, so you'll need it installed to run the engine.
  • Jekyll: You can install it using the Ruby Gem package manager. Open Terminal/Command Prompt and type: 'gem install jekyll bundler'.

Now that you're set up, let's create your first Jekyll site.

JEKYLL AND HYDE
JEKYLL AND HYDE

Creating a New Jekyll Site

In your Terminal/Command Prompt, navigate to the folder where you'd like to create your site. Then, type 'jekyll new your-site-name' (replace 'your-site-name' with your desired site name). Jekyll will create a new directory with your chosen name, containing the basic site structure.

To see your site in action, change into the new directory (e.g., 'cd your-site-name') and start the local server by typing 'jekyll serve'. Visit 'http://127.0.0.1:4000' in your web browser to see your newborn site!

10xDEV - Blog
10xDEV - Blog

Configuring Your GitHub Pages Site

The next step is to push your site to GitHub and configure it as a GitHub Pages site. First, navigate to your site's directory and initialize a Git repository with 'git init'. Add, commit, and push your changes to a new repository on GitHub:

  1. git add .
  2. git commit -m "Initial commit"
  3. git remote add origin (replace with your GitHub username and desired repo name)
  4. git push -u origin main
Jekyll and Hyde!
Jekyll and Hyde!

Now, let's tell GitHub to treat this repository as a GitHub Pages site. In your repository settings, scroll down to the 'GitHub Pages' section, choose the main branch, and click 'Save'.

Customizing Your Jekyll Site

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
Enfield stop you’re gonna give the poor man a heart attack 😭
Enfield stop you’re gonna give the poor man a heart attack 😭
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
JEKYLL AND HYDE
Jekyll Jekyll Hyde Jekyll Hyde Hyde Jekyll!!!
Jekyll Jekyll Hyde Jekyll Hyde Hyde Jekyll!!!
a black and white drawing of two cartoon characters
a black and white drawing of two cartoon characters
Syabu 💔 — Jekyll
Syabu 💔 — Jekyll
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
Utterson
Utterson
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
GitHub - programminghistorian/jekyll: Jekyll-based static site for The Programming Historian
GitHub - programminghistorian/jekyll: Jekyll-based static site for The Programming Historian
sillies
sillies
JEKYLL AND HYDE
JEKYLL AND HYDE
an image of a man with a hat on and the words it's such a fine line between a good man and a bad
an image of a man with a hat on and the words it's such a fine line between a good man and a bad
Jekyll & Hyde Plot Summary
Jekyll & Hyde Plot Summary
Pin; THATBARBIEX🦋 #pinterestthatbarbiex
Pin; THATBARBIEX🦋 #pinterestthatbarbiex
Jekyll and Hyde character analysis DR JEKYLL
Jekyll and Hyde character analysis DR JEKYLL
the strange case of dr jekyll and mr hyde
the strange case of dr jekyll and mr hyde
an image of henry jekyll from the animated series
an image of henry jekyll from the animated series
some character designs for edward hyde and the other characters are drawn in pencil on paper
some character designs for edward hyde and the other characters are drawn in pencil on paper

You can customize your site's visuals and content by editing files in the '_includes' and '_layouts' directories. The 'index.md' file in the root of your site contains the content for the homepage.

Creating New Posts

Jekyll uses plain text files with a '.md' or '.markdown' extension for content. To create a new post, simply make a new file in the '_posts' directory, following the naming convention 'YYYY-MM-DD-title.md'. Write your post in Markdown lenguaje, and Jekyll will convert it to HTML when you build your site.

Previewing and Building Your Site

While working on your site, use 'jekyll serve' to preview changes locally. When you're ready to deploy, build your site with 'jekyll build', then push the contents of the '_site' directory to your GitHub repository.

Congratulations! You've just learned how to create, customize, and deploy a static website using Jekyll and GitHub Pages. Now it's time to show off your new site to the world. Happy coding, and here's to many more sites to come!