问题
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