当前位置: 首页 > 工具软件 > jekyll-serve > 使用案例 >

jekyll-paginate 缺失

曹原
2023-12-01

从 Jekyll 3.0 开始,jekyll-paginate 被移除了,因为与其他核心功能不能很好的协作。如果出现这种提示:

$ jekyll serve
Configuration file: /var/www/lanyon-mobile/_config.yml
Deprecation: You appear to have pagination turned on, but you haven’t included the jekyll-paginate gem. Ensure you have plugins: [jekyll-paginate] in your configuration file.
Source: /var/www/lanyon-mobile
Destination: /var/www/lanyon-mobile/_site
Incremental build: disabled. Enable with --incremental
Generating…
Since v3.0, permalinks for pages in subfolders must be relative to the site source directory, not the parent directory. Check https://jekyllrb.com/docs/upgrading/ for more info.

解决办法:

  1. 安装插件

    $ gem install ‘jekyll-paginate’

  2. 在 _config.yml 中增加:

    plugins: [jekyll-paginate]

 类似资料: