Gem "jekyll-theme-awesome" instead of gem install "jekyll-theme-awesome"


#1

Following the documentation for changing a jekyll theme here: https://jekyllrb.com/docs/themes/ I’ve found that this command for installing the gem theme:

gem "jekyll-theme-awesome"

should be

gem install "jekyll-theme-awesome"

Is the documentation incorrect or am I missing something?


#2

That line is supposed to be added to your Gemfile, not typed into the terminal.


#3

That explains alot. Thank you!

Following this info here: https://jekyllrb.com/docs/themes/#installing-a-theme there is no way one could tell that 1. needs to add that line to the Gemfile file, while 2. is a command that should be run.


#4

I agree, it is a bit confusing if you’re not used to using Gems. Glad I could help!


#5

The official documentation for installing theme-gems, has been updated…
Should be less confusing now… do check it out…


#6

I’ve checked that part and you are right, it should be less confusing now. On the other hand, I’m having a hard time changing the theme. Please see this post here: Liquid Exception: No such file or directory - git rev-parse HEAD in /_layouts/default.html


#7

That is better. Thanks @ashmaroli!