要使用jekyll分页功能时报错。内容:

Dependency Error: Yikes! It looks like you don’t have jekyll-paginate or one of its dependencies installed. In order to use Jekyll as currently configured, you’ll need to install this gem. The full error message from Ruby is: ‘cannot load such file – jekyll-paginate’ If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!

在网上查询之后都提到在_config.yml文件中添加:

gems: [jekyll-paginate] paginate: 5

但是我的文件中已经包含这个(用gems会出警告,建议换成plugins)。查了很久最后在一个国外网站上看到还有在Gemfile中添加:

gem ‘jekyll-paginate’, group: :jekyll_plugins