Create a new repo to host your blog site, call it "blog" https://github.com/new
Using this theme: https://jekyllthemes.io/theme/forty-jekyll-theme
In your terminal:
git clone git@github.com:andrewbanchich/forty-jekyll-theme.git blog
cd blog
git remote remove origin
git remote add origin git@github.com:<your-guthub-username>/blog.git
git push origin master
Go to this address and create a PAT - doesnt matter what you call it. Make sure it has access to all of "repo" https://github.com/settings/tokens
- Go to GitHub |
<Repo>
| Settings | Secrets - Add a repository secret called
JEKYLL_PAT
and paste in your secret from before
Add a docker-compose.yml
to the root of the blog project
version: '3'
services:
jekyll:
image: jekyll/jekyll:4.2.0
command: jekyll serve --watch --incremental
ports:
- 4000:4000
volumes:
- .:/srv/jekyll:cached
To start Jekyll, type docker compose up
To force a rebuild docker compose exec jekyll jekyll build