There are two ways to edit your Xanthan site: in the browser through GitHub, or locally on your computer. Both produce the same result—files committed to your repository and published to your live site. The difference is in the editing experience.
Start with GitHub editing. It requires no installation, works from any computer, and is perfectly fine for adding pages, editing text, and uploading images. When you find yourself making frequent changes or wanting more control, switch to local editing.
GitHub’s built-in code editor gives you an intuitive editing environment in your browser. A list of files shows up on the left, and you can edit files on the right. Press . on any repository page to open it.
. on your repository page to open the code editorindex.md).md at the end (e.g., my-new-page.md)---
title: My New Page
layout: xanthan
---
The navigation menu is controlled by a single data file:
_data/top-nav.yml in the code editorFor more on navigation options, see the Navigation guide.
To organize pages into folders (e.g., projects/my-project.md):
For frequent editing, working on your own computer is faster and more flexible. You’ll need two free tools:
When you save a file, GitHub Desktop notices the change automatically:
Your site rebuilds automatically in about a minute.
A quick checklist to prevent common errors:
"..." not "...'){% ... %})--- markers| GitHub editor | Local editing | |
|---|---|---|
| Setup | None | Install 2 apps |
| Best for | Quick edits, single pages | Frequent changes, multiple files |
| File management | Limited | Full (drag, drop, rename, move) |
| Works offline | No | Yes |
| AI assistance | Limited | Full (Copilot, Cursor, etc.) |
| Preview locally | No | Yes (with Docker) |
Most people start in GitHub and graduate to local editing as their site grows. There’s no wrong answer—use whatever keeps you productive.