This blog is configured to use the minimal-mistakes template, which is quite customizable.
To know more about the customizations that can be done, go to:
- General instructions.
- Override the theme defaults. Default templates have already been copied on this repository at /includes.
- Play with SASS. This repository already includes a copy of assets/css/main.scss that can be modified.
If you have Jekyll installed locally (see the official doc) you can execute:
bundle exec jekyll buildOtherwhise you can do it with docker. It will be a little bit slower, but you don't need to modify your local machine:
docker run \
-it \
--rm \
--volume="$PWD:/srv/jekyll" \
jekyll/jekyll:3.8 jekyll buildThe resulting static site will be under docs/.
The blog uses some plugins that are not supported by GitHub pages.
Therefore, we need to build Jekyll pages locally and then commit the docs/
directory on each modification.
To build Jekyll pages locally with docker, use:
docker run -it --rm --volume="$PWD:/srv/jekyll" --env JEKYLL_ENV=development -p 4000:4000 jekyll/jekyll:3.8 jekyll builddocker run -it --rm --volume="$PWD:/srv/jekyll" --env JEKYLL_ENV=development -p 4000:4000 jekyll/jekyll:3.8 jekyll serveThese two steps only the first time:
- Follow the instructions listed here. (To install it on Mac, follow this instructions.)
- On this folder, run
bundle add webrick. In fact this is only needed if using Ruby 3, but shouldn't hurt in other cases.
Run jekyll serve (or perhaps bundle exec jekyll serve).
After a while, the console will said something like:
Server address: http://0.0.0.0:4000/
Server running... press ctrl-c to stop.
Then you can open your browser and navigate to localhost:4000 to open your local version of the blog.