A boilerplate setup for Jekyll sites hosted on GitHub Pages and managed with Tina CMS.
- Automated builds directly to GitHub Pages with any plugins (not just the default white-listed ones)
- Automatic responsive images via jekyll-picture-tag
- Custom SCSS grid system for easy layouts
- Tina CMS hosted on the same domain at /admin
You need to create three secrets in the repo. All three come from your Tina project.
TINA_PUBLIC_CLIENT_ID
: Your Tina Client ID. Fuond under "Overview" in the sidebar.TINA_TOKEN
: Your Tina "Content (Readonly)" token. Found under "Tokens" in the sidebarTINA_SEARCH_TOKEN
: Your Tina "Search" token. Found under "Tokens" in the sidebar
Make sure to update build.basepath
in tina/config.ts
! You can leave this blank if you're building from the root of your domain.
You may want to update media
too, if you plan on changing where uploads are stored. (If you do this, make sure to update _config.yml
, so picture.source
and picture.output
match your updated location.
Under "Settings", select "Pages". Under "Build and deployment", set "Source" to "GitHub Actions".
You should see: "Your site was last deployed to the github-pages environment by the Deploy Jekyll site to Pages workflow."
Need to expand on this