问题描述
我的博客使用的是Jekyll 2,但是我使用了分页.但是,现在GitHub正在迁移到Jekyll 3 在此处输入链接描述和 Jekyll放弃对jekyll-paginate的支持我在升级时遇到问题.
My blog is using Jekyll 2 and I've used pagination. However now that GitHub is moving to Jekyll 3enter link description here and Jekyll drop support for jekyll-paginate I have problems upgrading.
jekyll-paginate页面说它从Jekyll 3开始重试,试图将其与我的其他宝石捆绑在一起会产生很多问题.
The jekyll-paginate page says that it is retried as of Jekyll 3 and trying to bundle it with my other gems is creating a bunch of problems.
还有任何想法也要如何处理?还有其他与Jekyll 3兼容的分页宝石吗?
Any thoughts as too how to handle this? Are there any other pagination gems that works with Jekyll 3?
推荐答案
是.默认情况下,Jekyll 3.0不再支持分页.您必须使用红宝石宝石进行分页.
Yes. Jekyll 3.0 is no more supporting paginate by default. You have to use ruby gems to paginate.
因此,将gems: [jekyll-paginate]
添加到您的 _config.yml 文件中.
So add gems: [jekyll-paginate]
to your _config.yml file.
这篇关于升级Jekyll 3-jekyll-paginate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!