Editing Workflows
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.
Editing in GitHub
GitHub’s built-in code editor gives you a full VS Code environment in your browser. Press . on any repository page to open it.
Edit an existing page
- Press
. on your repository page to open the code editor
- Click a file in the left sidebar (e.g.,
index.md)
- Make your changes in the editor
- Click the Source Control icon in the left sidebar
- Type a short commit message and press Ctrl+Enter (Cmd+Enter on Mac)
- Click “Sync Changes” to push to GitHub
Add a new page
- In the code editor, right-click in the file tree and choose “New File”
- Name it with
.md at the end (e.g., my-new-page.md)
- Add front matter at the top:
---
title: My New Page
layout: xanthan
---
- Write your content below the front matter
- Commit and sync
The navigation menu is controlled by a single data file:
- Open
_data/top-nav.yml in the code editor
- Follow the pattern of existing entries:
```yaml
- title: “My New Page”
url: “/my-new-page”
```
- Commit and sync
For more on navigation options, see the Navigation guide.
Move files into folders
To organize pages into folders (e.g., projects/my-project.md):
- Open the file in the code editor
- Click on the filename at the top of the editor tab
- Edit the path to include the folder (GitHub creates it automatically)
- Commit and sync
Editing locally
For frequent editing, working on your own computer is faster and more flexible. You’ll need two free tools:
- GitHub Desktop — keeps your local files and GitHub repository in sync
- Visual Studio Code — a proper code editor with file management, search/replace, and AI assistant support
2. Clone your repository
- In GitHub Desktop, go to File > Clone Repository
- Find your site’s repository in the GitHub.com tab
- Select it and click Clone
- Choose where on your computer you want the files
3. Edit in VS Code
- In GitHub Desktop, click “Open in Visual Studio Code”
- VS Code opens with your full project loaded
- Edit files, add images, rename and move things—all with a real file manager
4. Commit and push
When you save a file, GitHub Desktop notices the change automatically:
- Switch to GitHub Desktop
- Your changed files appear in the left sidebar
- Add a short summary of what you changed
- Click “Commit to main”
- Click “Push origin” to send changes to GitHub
Your site rebuilds automatically in about a minute.
Before you commit
A quick checklist to prevent common errors:
- Matching quotes in include blocks (
"..." not "...')
- File paths that match actual file locations exactly
- Include blocks with proper delimiters (
{% ... %})
- Front matter properly formatted between
--- markers
Which should I use?
| |
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 before publishing |
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.
Next steps