Setup a local environment for Ruby
sudo apt install rbenv
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
git -C "$(rbenv root)"/plugins/ruby-build pull
Install the version of Ruby supported by Github pages
rbenv install 3.0.2
rbenv local 3.0.2
and finally the Jekyll dependencies
gem install bundler
bundle install
bundle exec jekyll serve