首页 > 代码库 > Jekyll解决Deprecation: but you haven't included the `jekyll-paginate` gem

Jekyll解决Deprecation: but you haven't included the `jekyll-paginate` gem

Configuration file: E:/LessOrMore/_config.yml
Deprecation: You appear to have pagination turned on, but you haven‘t included the `jekyll-paginate` gem. Ensure you have `gems: [jekyll-paginate]` in your configuration file.
Source: E:/LessOrMore
Destination: E:/LessOrMore/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.655 seconds.
Deprecation: You appear to have pagination turned on, but you haven‘t included the `jekyll-paginate` gem. Ensure you have `gems: [jekyll-paginate]` in your configuration file.

 

问题

在运行 jekyll serve 的时候,出现该问题:

Deprecation: You appear to have pagination turned on, but you haven’t included the jekyll-paginate gem. Ensure you have gems: [jekyll-paginate] in your configuration file.


解决

因为我们的配置文件_config.yml使用了 paginate 配置项,所以需要添加一行:

gems: [jekyll-paginate]
  • 1
  • 1

参考

https://teamtreehouse.com/community/jekyllpaginate-gem

Jekyll解决Deprecation: but you haven't included the `jekyll-paginate` gem