检测配置是否正确:
jekyll doctor
不要设置 permalink
在你的博客的头信息中设置 permalink 会造成分页功能的瘫痪。缺省设置 permalink 即可。
#
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
markdown: kramdown
theme: minima
plugins:
plugins: [jekyll-paginate]
paginate: 5
paginate_path: “/page:num/”
#include: [ “_pages”, “_posts” ]
#highlighter: pygments #这里一定要注释掉,不然分页失败
comments: true
#excerpt_separator: