Your content is stored in Markdown files within the
content directory of your repository. Let's learn how it works.
A change in Stackbit's visual editor triggers a commit to the
preview branch in your repository. To test it out:
- Click the gear icon in the top left of the Studio.
- Click Open next to Github.
- Place Stackbit and Github side by side.
- In Github, click Content, then Pages, and finally
- Click the Master button. Select the
- In Stackbit, edit the hero title.
- Refresh the Github page. Watch it update.
The sync we showed above goes both ways. A commit to the
preview branch of your repository updates Stackbit's visual editor. Let's test that out.
- Start in the
./content/pages/index.mdfile in the Github repository.
- Click the edit button.
- Change the
- Scroll down and add a description like Updated title.
- Click Commit changes.
- Watch the new title show up in Stackbit.
💡 Reminder: Make sure your commit is to the
preview branch. If you're using a local development environment, make sure to
push the changes up to your remote repository.