Upgrade Jekyll 3 - jekyll-paginate

一个人想着一个人 提交于 2019-12-07 19:26:40

问题


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.

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.

Any thoughts as too how to handle this? Are there any other pagination gems that works with Jekyll 3?


回答1:


Yes. Jekyll 3.0 is no more supporting paginate by default. You have to use ruby gems to paginate.

So add gems: [jekyll-paginate] to your _config.yml file.




回答2:


You can also add to _config.yml

Gems

gems: [jekyll-paginate]

paginate: 5

paginate_path: "page:num"



来源:https://stackoverflow.com/questions/35291602/upgrade-jekyll-3-jekyll-paginate

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!