Having problems? This guide covers common issues and how to fix them.
Problem: Your image code looks correct but the image doesn’t appear.
Common causes:
Check:
{% include images/figure.html
image-path="images/photo.jpg" ← Must match actual location
%}
File names are case-sensitive! Check:
photo.jpg ≠ Photo.jpg ≠ photo.JPG.jpg, .JPG, .jpeg, .png are all differentFix: Make sure your code matches the filename EXACTLY, including capitalization and extension.
/: /assets/images/photo.jpg (works from any page)/: images/photo.jpg (relative to current page location)Recommendation: Always use absolute paths starting with / to avoid confusion.
Problem: You made changes but your site isn’t updating after 5+ minutes, or GitHub Actions shows a build failure.
Most common cause: A syntax error is preventing Jekyll from building your site.
Step 1: Find the error
Step 2: Understand what it’s telling you The error message usually looks like:
Liquid Exception: Liquid syntax error (line 42): Expected end_of_string but found...
in /home/runner/work/my-site/guides/getting-started.md
This tells you:
%} or similar)guides/getting-started.mdStep 3: Go to that file and fix it
guides/getting-started.md)%} on an include?" vs ')?Step 4: Save your fix
Step 5: Check if it worked
Problem: Your component code isn’t working.
❌ Wrong:
{ include figure.html %} ← Missing %
{& include figure.html %} ← Wrong symbol
{% include images/figure.html } ← Missing %
✅ Correct:
{% include images/figure.html %}
❌ Wrong:
{% include images/figure.html
caption="This is broken' ← Mismatch " and '
width='50%" ← Mismatch ' and "
%}
✅ Correct:
{% include images/figure.html
caption="This works correctly"
width="50%"
%}
❌ Wrong:
{% include images/figure.html
image-path="/assets/images/photo.jpg"
✅ Correct:
{% include images/figure.html
image-path="/assets/images/photo.jpg"
%} ← Don't forget closing %}
Problem: Page won’t build due to front matter issues.
Every page needs front matter at the very top:
✅ Correct:
---
title: My Page
layout: xanthan
date: 2024-12-02
---
# Page content starts here
❌ Must start on first line (no blank lines before ---)
❌ Must have three dashes --- not two --
❌ Must close with --- on its own line
❌ Indentation matters in YAML (use spaces, not tabs)
Problem: Links to other pages return 404 errors.
/about not /about.md.md to .html automatically❌ [Link](guides/getting-started.md)
✅ [Link](/guides/getting-started)
✅ [Link](guides/getting-started)
_config.yml/repository-name/Problem: CSS changes aren’t showing up.
Ctrl + Shift + RCmd + Shift + R/assets/css/_includes/page-header.html;}