Jekyll theme could not be found

后端 未结 1 1147
無奈伤痛
無奈伤痛 2021-02-18 17:56

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

相关标签:
1条回答
  • 2021-02-18 18:42

    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:

    • Add the theme-gem to your Gemfile
    • add the theme to your _config.yml (correctly done already..)
    • Run: bundle install (just to make sure Bundler is able to use it)
    • Run: bundle exec jekyll serve

    Adding a theme-gem to a Gemfile:

    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"

    0 讨论(0)
提交回复
热议问题