jekyll paginate 分页失败原因

检测配置是否正确:
jekyll doctor




不要设置 permalink
在你的博客的头信息中设置 permalink 会造成分页功能的瘫痪。缺省设置 permalink 即可。



Welcome to Jekyll!


#


This config file is meant for settings that affect your whole blog, values


which you are expected to set up once and rarely need to edit after that.


For technical reasons, this file is NOT reloaded automatically when you use


‘jekyll serve’. If you change this file, please restart the server process.



title: 泽民博客
email: 465474307@qq.com
description: >- # this means to ignore newlines until “baseurl:”
夏泽民的个人主页,学习笔记。
baseurl: “/MyBlog” # the subpath of your site, e.g. /blog
url: “https://xiazemin.github.io” # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: xiazemin
github_username: xiazemin



Build settings


markdown: kramdown
theme: minima
plugins:



  • jekyll-feed



plugins: [jekyll-paginate]
paginate: 5
paginate_path: “/page:num/”
#include: [ “_pages”, “_posts” ]
#highlighter: pygments #这里一定要注释掉,不然分页失败
comments: true
#excerpt_separator:


Category jekyll