宝石安装但jekyll插件无法找到它

时间:2017-08-07 02:29:21

标签: rubygems jekyll

我正在为jekyll安装较少的插件,但将此文件放入_plugins文件夹:https://gist.github.com/joshbrown/760265

我跑了: sudo gem install less

我已验证使用宝石列表安装宝石:更少(2.6.0)

Ran gem env gemdir /usr/local/lib/ruby/gems/2.4.0

宝石哪个'少' /usr/local/lib/ruby/gems/2.4.0/gems/less-2.6.0/lib/less.rb

虽然我无法使用捆绑show --paths

找到它

当我运行它时,它抱怨没有安装gem:

You are missing the library required for less. Please run:
 $ [sudo] gem install less
  Conversion error: Jekyll::LessConverter encountered an error while converting 'aa.less':
                    uninitialized constant Jekyll::LessConverter::FatalException Did you mean? SignalException
jekyll 3.5.1 | Error:  uninitialized constant Jekyll::LessConverter::FatalException

Mac版:El Capitan

有人可以告诉我哪里做错了吗?

1 个答案:

答案 0 :(得分:0)

当您使用bundle时,您需要将其作为gem依赖项添加到<div class="view-index"> <div class="view-text"> <h2>This Navbar isn't fixed</h2> <h5>When you scroll down it will disappear</h5> <br> <p>Full page intro with background image will be always displayed in full screen mode, regardless of device </p> </div> </div>

然后运行Gemfile,您就可以使用bundle install查看它并使用bundle show运行Jekyll。