PlebWare | Human-Centred Technology & Independent Learning 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


Previous: Keeping the Faith Without Becoming the Hero!

Next: Online Housekeeping!

No earlier PlebWare page yet

You haven't visited another PlebWare page in this tab yet. If you arrived from Google or opened this page directly, there may be no earlier page to return to.

You can keep exploring from here:

๐Ÿ”Ž Search PlebWare ๐Ÿ“š Browse All Articles