GitHub lets you edit files in the browser, but it’s not designed to be a full editor. The easiest, most reliable way to work on your Xanthan-based site is to edit the site on your computer, then publish changes on GitHub.
The idea is that you make a copy of your GitHub repository on your computer, edit the files in a text editor, and then send them to GitHub to actually update the functioning website.
These instructions walk you through installing the needed tools, connecting to your repository, editing locally, and pushing changes.
GitHub Desktop makes it easy and visual to keep your GitHub and local (meaning on your computer) repositories in sync.
VS Code is your code editor.
“Cloning” means making a local copy of your GitHub Pages project.
You now have all your site files on your machine.
You can now browse folders, edit content, add images, rename files and folders via VS Code, just like you do on your computer (and avoiding the clunky GitHub interface for these).
Before committing changes:
"..." or '...'){% ... %}Most errors are caught by following this checklist!
When you save a file, GitHub Desktop notices the changes automatically and helps you “push” the changes to your GitHub repository (and therefore bring it in sync with your local version).
Your edits are now live!
If something doesn’t work, head over to the troubleshooting page
(i.e. Why This Is Better Than Editing on GitHub)
Github’s browser editor is very limited:
Working locally means you can:
You can edit your entire site offline. You only need internet when you push your changes.
Uploading images, moving folders, renaming files, or editing multiple files at once is dramatically easier with a real file manager like VS Code.