Build a Stunning GitHub Pages Portfolio with Our Step by Step Tutorial

Logan Jul 13, 2026

Creating an online portfolio is an essential step for any developer looking to showcase their work and boost their career prospects. One of the most popular platforms for creating and hosting a portfolio website is GitHub Pages. It's free, easy to set up, and integrates seamlessly with your existing GitHub profile.

10 GITHUB PROJECTS THAT LOOK IMPRESSIVE ON A RESUME
10 GITHUB PROJECTS THAT LOOK IMPRESSIVE ON A RESUME

In this comprehensive tutorial, we'll guide you step by step through the process of creating a professional, SEO-optimized portfolio website using GitHub Pages. By the end of this guide, you'll have a dynamic and engaging online presence to showcase your projects and attract potential employers or clients.

GitHub Dark Readme - Aesthetic
GitHub Dark Readme - Aesthetic

Getting Started with GitHub Pages

Before we dive into the creation process, let's ensure you have the necessary tools and configurations in place.

stunning github
stunning github

First, make sure you have Node.js installed on your local machine. Node.js comes bundled with npm (Node Package Manager), which we'll need to install the tools required for creating and maintaining our portfolio. You can download Node.js from the official website (https://nodejs.org/).

Creating a New Repository

a computer screen shot of a resume for a person with glasses on and the words about me above it
a computer screen shot of a resume for a person with glasses on and the words about me above it

Once Node.js is installed, create a new repository on GitHub for your portfolio. This repository will host your portfolio website's code. Follow these steps to create a new repository:

  • Log in to your GitHub account (https://github.com/).
  • Click the "+" icon in the top-right corner and select "New repository".
  • Name your repository using the following format: username.github.io, replacing "username" with your GitHub username. This convention is essential for GitHub Pages to work correctly.
  • Choose whether you want the repository to be public or private, and then click "Create repository".

Initializing Your Portfolio Project

Github Profile 2
Github Profile 2

Now, let's initialize our portfolio project locally and set up the folder structure.

First, create a new folder for your portfolio on your local machine. Then, open your terminal or command prompt, navigate to the new folder, and initialize a new Git repository by running:

git init

Next, install Jekyll – a static site generator that GitHub Pages uses to render websites. Run the following command to install Jekyll globally:

Github Profile
Github Profile

npm install -g jekyll

Finally, initialize a new Jekyll project in your portfolio folder with:

jekyll new .

After the initialization is complete, you'll have a basic Jekyll project structure in your portfolio folder.

GitHub Readme Idea - Minimalism Black & White
GitHub Readme Idea - Minimalism Black & White
GitHub Profile
GitHub Profile
Engage with GitHub: Fueling Your Open Source Journey Forward 🌟
Engage with GitHub: Fueling Your Open Source Journey Forward 🌟
The Beginner’s Shortcut to GitHub: Start Managing Your Code Like a Pro Today
The Beginner’s Shortcut to GitHub: Start Managing Your Code Like a Pro Today
Customise your Notion Portfolio without coding
Customise your Notion Portfolio without coding
What Recruiters Look For in a GitHub Profile
What Recruiters Look For in a GitHub Profile
GitHub Profile Checklist for Students | Make Your Developer Profile Stand Out in 2026
GitHub Profile Checklist for Students | Make Your Developer Profile Stand Out in 2026
Jurgen Hideni - Web Developer Portfolio - Jurgen Hideni
Jurgen Hideni - Web Developer Portfolio - Jurgen Hideni
GitHub for Full Stack Developers: Build Your Web Portfolio 👨‍💻
GitHub for Full Stack Developers: Build Your Web Portfolio 👨‍💻
someone is typing on their laptop with the text how to make this interactive thing readmymag
someone is typing on their laptop with the text how to make this interactive thing readmymag
siffrin github page
siffrin github page
a black and white photo with the words easy portfolios for programming
a black and white photo with the words easy portfolios for programming
Design a portfolio landing page.
Design a portfolio landing page.
github/alexlbnt
github/alexlbnt
an image of a man in front of a black background with green and blue lines
an image of a man in front of a black background with green and blue lines
a laptop computer sitting on top of a desk next to a cup of coffee and pen
a laptop computer sitting on top of a desk next to a cup of coffee and pen
8 bit retro computer web portfolio
8 bit retro computer web portfolio
Portfolio Website Design
Portfolio Website Design
an image of a web page with the words hi, i'm divyansh chaudhary
an image of a web page with the words hi, i'm divyansh chaudhary
How To Create A GitHub Profile README
How To Create A GitHub Profile README

Customizing Your Portfolio

Now that we have a working Jekyll project, let's customize our portfolio by creating a personalized layout and styling it to our liking.

For this tutorial, we'll use a popular Jekyll theme called Minimal. First, install the theme in your portfolio folder using npm:

npm install -g @runeksvogt/minimal-jekyll-theme

Then, replace the contents of your _config.yml file with the following configuration:

remote_theme: runeksvogt/minimal-jekyll-theme

Now, let's create essential pages for our portfolio.

Creating the About Page

To create an about.md page, navigate to the _pages folder in your portfolio project, and add a new file called about.md. Add the following content to the new file, replacing the placeholder text with your own information:

>---
layout: homepage
title: About Me
---
# About Me

*Replace this text with a brief bio about yourself and your skills.*

**Contact Me**

* [LinkedIn](https://www.linkedin.com/in/yourprofile/)
* [Email](mailto:your-email@example.com)

**Skills**

* Programming languages (e.g., JavaScript, Python, etc.)
* Frameworks and libraries (e.g., React, Django, etc.)
* Tools and soft skills (e.g., Git, problem-solving, communication)

Next, update the _config.yml file to include the new page in the site's navigation menu:

remote_theme: runeksvogt/minimal-jekyll-theme

plugins:
  - jekyll-seo-tag

titles_from_headings:
  enabled:     true
  strip_title: true
  collections: true

header_pages:
  - index.md
  - about.md
  - projects.md

Creating the Projects Page

Copy the about.md page and rename it to projects.md. Update the content to display your projects with their respective descriptions, images, and demo or source links. Here's a basic structure to follow:

>---
layout: homepage
title: My Projects
---

Now, let's create a loop to dynamically display our projects using Jekyll's liquid tags. Add the following code to the projects.md file:

---
layout: homepage
title: My Projects
---

{% for project in site.projects %}

{{ project.title }}

{{ project.title }}

{{ project.description }}

{% if project.demo %} Live Demo {% endif %} {% if project.source %} Source {% endif %}
{% endfor %}

To populate the projects, create a new folder called projects in your portfolio's root folder. Inside this folder, create a new .md file for each project, following this format:

>---
layout: project
title: Project Title
image: /path/to/project/image.jpg
description: A brief description of the project.
demo: https://demo-url-or-null
source: https://source-url-or-null
---

Repeat this process for all your projects, and update the _config.yml file to include the new projects folder:

remote_theme: runeksvogt/minimal-jekyll-theme

plugins:
  - jekyll-seo-tag

titles_from_headings:
  enabled:     true
  strip_title: true
  collections: true

header_pages:
  - index.md
  - about.md
  - projects.md

collections:
  projects:
    output: true
    permalink: /projects/:path/

SEO Optimization

Search Engine Optimization is crucial for making your portfolio website visible to potential employers and clients. In this section, we'll optimize our portfolio for better search engine rankings.

First, make sure that your _config.yml file includes the following liquid plugin to generate SEO-friendly meta tags for each page:

plugins:
  - jekyll-seo-tag

Next, update the index.md file to include essential SEO information:

>---
layout: homepage
title: Your Name - Portfolio
description: A brief description of your portfolio and skills.
owireat: ~
---
# Welcome to My Portfolio

*Replace this text with a captivating introduction about yourself and your skills.*

For better search engine visibility, create a robots.txt file in your portfolio's root folder with the following content:

User-agent: *

Sitemap: https://yourusername.github.io/sitemap.xml

Note: Replace yourusername with your actual GitHub username. This informs search engine crawlers where to find your sitemap, helping them index your website more effectively.

Creating a Sitemap

A sitemap is an XML file that helps search engines discover and index all the pages on your website. To generate a sitemap for your portfolio, install the jekyll-sitemap plugin by running:

gem install jekyll-sitemap

Then, update your _config.yml file to include the plugin:

remote_theme: runeksvogt/minimal-jekyll-theme

plugins:
  - jekyll-seo-tag
  - jekyll-sitemap

jekyll_sitemap:
  enabled: true

titles_from_headings:
  enabled:     true
  strip_title: true
  collections: true

header_pages:
  - index.md
  - about.md
  - projects.md

collections:
  projects:
    output: true
    permalink: /projects/:path/

Finally, to ensure search engines don't crawl and index sensitive or unnecessary files, create a .gitignore file in your portfolio's root folder with the following content:

# Ignore Jekyll metadata file
*.md

# Ignore generated files
about.md
projects.md
sitemap.xml

Your SEO-optimized portfolio is now ready to be published and shared with the world. Before publishing, let's preview our work locally to make sure everything looks as expected.

Previewing Your Portfolio Locally

To preview your portfolio website locally, navigate to your portfolio folder's root directory in your terminal or command prompt and run:

jekyll serve

Then, open your web browser and visit http://localhost:4000 to see your portfolio in action. Once you're satisfied with your portfolio, it's time to publish it to GitHub Pages.

Publishing Your Portfolio to GitHub Pages

Now that your portfolio is perfect, let's push it to GitHub Pages and share it with the world.

First, initialize a new Git repository in your portfolio folder if you haven't already:

git init

Then, add, commit, and push your changes to your repository:

git add .
git commit -m "Initial portfolio commit"
git remote add origin https://github.com/yourusername/yourusername.github.io.git
git push -u origin master

Replace yourusername with your actual GitHub username. This command pushes your portfolio files to the master branch, which GitHub Pages uses to render your live website.

IMPORTANT: If you already have a website hosted on GitHub Pages, either publish your portfolio to a different branch or remove the existing website's contents before publishing.

Accessing Your Published Portfolio

After pushing your portfolio files to GitHub, GitHub Pages will automatically build and publish your website. You can access your live portfolio at:

https://yourusername.github.io

Replace yourusername with your actual GitHub username. It may take a few minutes for GitHub Pages to generate and publish your portfolio after pushing your changes. Once live, your portfolio will be accessible to the entire world, showcasing your work and attracting potential employers or clients.

Congratulations! You've successfully created a professional, SEO-optimized portfolio website using GitHub Pages. Keep updating your portfolio with new projects and achievements, and watch as your online presence grows and attracts new opportunities. Happy coding!