See gist.

Ruby 3

I did a blog post series on upgrading to Ruby 3 and fixing up Jekyll projects.

In particular, you need to install Webrick to avoid an error on Jekyll serve command. See issue #8523. Perhaps this will be fixed in newer versions of Jekyll.

Run this to add the gem to your Gemfile and install it.

$ bundle add webrick