从 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 thejekyll-paginate
gem. Ensure you haveplugins: [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.
解决办法:
安装插件
$ gem install ‘jekyll-paginate’
在 _config.yml 中增加:
plugins: [jekyll-paginate]