1. 程式人生 > >Jekyll解決Deprecation: but you haven't included the `jekyll-paginate` gem

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

gem source lock have attr pre isa ati 們的

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