Following the jekyll documentation found here: https://jekyllrb.com/docs/themes/ I was trying to install and change a gem based theme so I have chosen the jekyll-theme-primer fo
From what I gather, it looks like you did not add jekyll-theme-primer
to your Gemfile
, but instead simply executed gem "jekyll-theme-primer"
in the terminal and later installed the gem correctly after encountering the Gem::CommandLineError
So, in short, simply follow the steps below:
Gemfile
_config.yml
(correctly done already..)bundle install
(just to make sure Bundler is able to use it)bundle exec jekyll serve
Open your current Gemfile
in a text-editor, and replace entire line gem "minima", "~> 2.0"
with your theme gem. i.e. gem "jekyll-theme-primer", "~> 0.4"