Plebware Control Centre Banner

Adding Images On GitHub Pages

Embedding Centred Images In GitHub Pages Markdown

πŸ”‘ Introduction

When creating articles for GitHub Pages with Jekyll, images can be stored inside your project and displayed inside Markdown posts.

This tutorial shows how to:


Step One: Create Your Image Folder

Inside your GitHub Pages repository, create:

assets/
└── images/
    └── StickerCreation.jpg

Example:

plebware.github.io

β”œβ”€β”€ _posts
β”‚   └── 2026-06-17-chibi-stickers.md
β”‚
β”œβ”€β”€ assets
β”‚   └── images
β”‚       └── StickerCreation.jpg
β”‚
└── index.md

Step Two: Upload Your Image

Place your image inside:

assets/images/

Example:

assets/images/StickerCreation.jpg

Step Three: Open Your Markdown Post

A Jekyll post begins with front matter:

---
layout: post
title: "Chibi Sticker-Pack Creation"
date: 2026-06-17
---

The front matter must always be at the top.


Step Four: Add A Centered Image

Immediately after the front matter add:

<div align="center">

<img src="/assets/images/StickerCreation.jpg"
     alt="Chibi Sticker-Pack Creation"
     style="max-width:600px; height:auto;">

</div>

Step Five: Add Your Article Content

Example:

<div align="center">

<img src="/assets/images/StickerCreation.jpg"
     alt="Sticker Creation"
     style="max-width:600px; height:auto;">

</div>


## Creating Stickers With ChatGPT

### Step One

Upload a suitable selfie


### Step Two

Prompt ChatGPT with:

> Create a cute illustrated chibi sticker-pack...

Understanding The Code

Image Location

src="/assets/images/StickerCreation.jpg"

means:

Website Root
    |
    └── assets
        |
        └── images
            |
            └── StickerCreation.jpg

Alternative Jekyll Method

For better compatibility with GitHub Pages themes:

<img src="/assets/images/StickerCreation.jpg">

This automatically handles:


Resize The Image

Large image:

style="width:100%;"

Medium:

style="max-width:600px;"

Small:

style="max-width:300px;"

Adding A Caption

<div align="center">

<img src="/assets/images/StickerCreation.jpg"
alt="Chibi Sticker Creation"
style="max-width:600px;">

<br>

<i>Creating my first AI sticker pack</i>

</div>

Common Problems

Image Not Showing

Check:

βœ… File name spelling

StickerCreation.jpg

is different from:

stickercreation.jpg

Linux is case-sensitive.


Wrong Folder

Incorrect:

images/StickerCreation.jpg

Correct:

assets/images/StickerCreation.jpg

Try:

/assets/images/StickerCreation.jpg

instead of:

/assets/images/StickerCreation.jpg

Quick Template

Copy this:

<div align="center">

<img src="/assets/images/YOURIMAGE.jpg"
alt="YOUR DESCRIPTION"
style="max-width:600px; height:auto;">

</div>

πŸ”‘ Result

You now have a clean GitHub Pages article with:

Perfect for PlebWare articles, tutorials, and creative posts.


πŸ’¬ Comments


← Back to archive

Previous: Six Days Missed Yet Still Writing

Next: Online Housekeeping