I am writing this post on my Mac, running macOS Catalina. In order to follow along, you will need to install Homebrew on your Mac. I also use rbenv to install Ruby 2.6.5. This is not strictly necessary but I did not want to modify the existing Ruby (2.6.3p62) installation.

(Optional) Install Ruby 2.6.5

rbenv install 2.6.5
rbenv rehash

cd Projects
rbenv local 2.6.5

Install Jekyll

gem install bundler jekyll

jekyll new myblog
cd myblog
bundle exec jekyll serve

(Optional) Install Jekyll-Compose plugin

Jekyll-Compose plugin is not necessary, but it is convenient when creating new posts or pages.

Open Gemfile and add the following to the bottom of the file.

gem 'jekyll-compose', group: [:jekyll_plugins]

Finally, run bundle command.

Now, you can run bundle exec jekyll draft, bundle exec jekyll publish and etc, making it easier to create new posts and pages.