generated from geekifan/chirpy-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Adding Images
mrbell-dev edited this page Feb 3, 2026
·
1 revision
This guide shows you how to add images to your posts and pages.
Images can be stored in two places:
| Location | Best For |
|---|---|
| Post folder | Images used only in that specific post |
| assets/img/ | Shared images used across multiple pages |
This is the easiest method for most posts.
- Go to
content/post/your-post-name/ - You should see
index.en.mdalready there
- Click Add file > Upload files
- Drag your image file or click "choose your files"
- Write a commit message like "Add photos to Field Day post"
- Click Commit changes
In your index.en.md file, add:
Example:
For images used on multiple pages (like logos).
- Go to
assets/img/commons/
- Click Add file > Upload files
- Upload your image
- Commit the changes
Use the full path from assets:
<figure>
<img src="image.jpg" alt="Description">
<figcaption>Your caption here</figcaption>
</figure><div class="text-center">
<img src="image.jpg" alt="Description" class="img-fluid">
</div><img src="image.jpg" alt="Description" width="400">| Good | Bad |
|---|---|
field-day-2024.jpg |
IMG_1234.JPG |
antenna-setup.png |
photo (1).png |
club-meeting.jpg |
Picture from meeting.jpeg |
Rules:
- Use lowercase letters
- Use hyphens instead of spaces
- Keep names descriptive but short
- Include year for dated content
-
Format: Use
.jpgfor photos,.pngfor graphics/logos - Size: Keep images under 1MB for faster loading
- Dimensions: Resize large images before uploading (1200px wide is usually plenty)
Free online tools:
- TinyPNG - Compresses images without quality loss
- Squoosh - Google's image optimizer
- iLoveIMG - Resize and compress
Recommended workflow:
- Take/select your photo
- Resize to max 1200px wide
- Compress with TinyPNG
- Rename with a descriptive filename
- Upload to GitHub
Always include alt text (the text in brackets). This:
- Helps visually impaired visitors
- Improves search engine rankings
- Shows when images don't load
Good alt text describes the image:
Bad alt text:
## Event Photos


<div class="text-center">
<img src="special-event-qsl.jpg" alt="N4UH Special Event QSL Card" class="img-fluid" width="500">
</div>| Equipment | Photo |
|-----------|-------|
| HF Station |  |
| VHF/UHF |  |- Check the filename matches exactly (including case)
- Make sure the image file was uploaded to the correct folder
- Verify the path in your Markdown is correct
- Resize the source image before uploading
- Use HTML with a
widthattribute - Use CSS classes like
w-50orw-75
- Compress the image with TinyPNG
- Resize to no more than 1200px wide
- Convert large PNGs to JPG format
- Previewing Changes - See how your images look before publishing
- Submitting Changes - Finalize your edits