To understand the basics of how pages work, let’s look at your homepage, the index.md file, directly on GitHub:
index.md in the file list.Every page starts with a small box that looks like this:
---
title: Getting Started
layout: xanthan
date: 2024-12-02
---
Why this exists: Think of it like a label on a folder. It tells GitHub Pages:
title)layout)date)Without this label, GitHub won’t know your page is part of your website.
Important: Always keep the three hyphens --- before and after your label, on their own lines.
The base layout is the standard page style used by most of your pages. Other layouts (like scrollstory or left-nav) change how the page looks.
Why Markdown? It’s simpler than HTML. You can write plain text with a few simple symbols for formatting:
# Heading becomes a big title**bold** becomes bold text[link text](url) becomes a clickable linkIf you’re new to Markdown, spend 5 minutes on this Markdown tutorial. If you forget syntax, check this cheat sheet.
If you want to see what your page will look like as you write, use Dillinger. Write there, preview instantly, then copy/paste your text into GitHub when you’re done. Once you get comfortable with Markdown, you won’t need to preview—you’ll just write directly in GitHub.
To understand more about pages and editing, move on to the Editing your site guide.