现在我的config.yml文件中有以下内容:
gems: [jekyll-paginate]
paginate: 3
paginate_path: "page:num"
在我的 index.html 页面中,我有以下内容:
{% for post in paginator.posts %}
Stuff
{% endfor %}
我在弄如何制作单独的分类页面并对它们进行分页时遇到了麻烦。
能否有人帮我解决这个问题?我已经搜了好久,但还是找不到答案。
现在我的config.yml文件中有以下内容:
gems: [jekyll-paginate]
paginate: 3
paginate_path: "page:num"
{% for post in paginator.posts %}
Stuff
{% endfor %}
Jekyll仅管理文章分页。
如果您想对分类进行分页,您需要像https://github.com/midnightSuyama/jekyll-paginate-category这样的插件。