码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-07-24 11:39:01      阅读:334      评论:0      收藏:0      [点我收藏+]

标签:source   blank   配置   build   appear   app   cond   one   enable   

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

标签:source   blank   配置   build   appear   app   cond   one   enable   

原文地址:http://www.cnblogs.com/zaifeng0108/p/7227566.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!