I found a really nice gem that sets all external links to open to a new tab. It’s called jekyll-target-blank. To add, just run the following.
Edit Gemfile and add this line.
Edit the _config.yml file and add this line.
Run bundle install.
$ bundle install
Because I’m running Jekyll in a docker container, I had to restart it.
docker-compose up -d
Check your external links. They should open up to a new tab.