A scratchpad Jekyll blog for my personal GitHub account.
- Checkout this repo:
gh repo clone GetOutOfMyBakery/getoutofmybakery.github.io
- Update the variables in
.envrc
- Run:
bin/setup
- Run:
bin/dev
- The blog is now locally hosted at: 127.0.0.1:4000 or localhost:4000
Important
bin/qr-code
displays a QR Code that can be used by a mobile device. The supplied IP address therefore needs to be something that can be routed, e.g.:
- local address:
192.168.#.#
- hostname:
my-laptop.home.arpa
With the help of jekyll-compose
, creating and managing posts is easy:
bundle exec jekyll post "My new post"
bundle exec jekyll draft "My new draft"
bundle exec jekyll help # Show the list of commands available to jekyll
See the jekyll-compose
Usage section for more.
Check out the jekyll-theme-chirpy
wiki.
You can also examine the latest version of the gem with:
bundle open jekyll-theme-chirpy
Important
In order to maintain the Skip to main content
button, and some other minor tweaks, use bin/diff-upstream-gem
to check for any relevant upstream changes that need to be merged in/resolved when updating versions.
For ease of use remember that bin/diff-upstream-gem
can pass in chars
or words
to the script to see just the different characters or words respectively.
Check how production will look before deploying with: JEKYLL_ENV=production bin/dev
.
Lefthook has been configured with pre-commit checks to:
- run
actionlint
for the.github/workflows
- run
htmlproofer
on the generated site - run
shellcheck
on any shell or bash scripts - alphabatise the user dictionary
Disable lefthook
with: LEFTHOOK=0 git commit
.
Simply merge to main
and the pages-deploy workflow will handle the building and deploying to GitHub Pages.
The site is currently hosted here.