Tina GitHub Pages Starter
A starter template for using TinaCMS with GitHub Pages (using Jekyll).
Using this starter
- Select Use this template > Create a new repository.
- Name the repo
<YOUR-GITHUB-USERNAME>.github.io
.
- Select Include all branches.
- Wait for
gh-pages
to initialize.
- Go to Settings > Pages and copy the site URL.
- Log in to Tina.
- Select New Project > Import your Site.
- Authenticate with GitHub and select your project repo.
- Under "Site URL(s)", enter your GitHub Pages site URL.
- Note the Client ID.
- Select Tokens > New Token.
- Name the token.
- Under Git Branches, enter
main
.
- Create Token. Note the Token string.
- Back on GitHub, go to Settings > Secrets and variables > Actions > new repository secret. Do this twice:
- Name:
CLIENT_ID
, and paste the Client ID.
- Name:
READ_TOKEN
, and paste the Token string.
- In your code, navigate to
.github/workflows/deploy.yml
. Delete the #
from line 7 to uncomment it. Commit changes.
- Your site should start recompiling: first on
main
, then on gh-pages
.
- Once complete, navigate to
https://<YOUR SITE URL>/admin
to find your TinaCMS dashboard.
Known Issues
Tina on GitHub Pages
Template
- Missing instructions on local development, i.e. dependencies and setup.
- Missing instructions on changing Jekyll theme, and tips for further customization.
Contributing
Pull requests, issues, and feedback are all more than welcome!
Acknowledgements