由于某些原因,我的分页无法正常工作。根据我引用的研究:
我已经阅读了documentation for categories example,但是当我尝试实现这一点时,它不起作用。我的设置是:
_config.yml:
plugins:
- jekyll-feed
- jekyll-paginate-v2
# Pagination Settings
pagination:
enabled: true
per_page: 2
_category / foo.html:
---
layout: category
category: Foo
title: Foo
permalink: "/category/foo"
pagination:
enabled: true
---
_category / bar.html:
---
layout: category
category: Bar
title: Bar
permalink: "/category/bar"
pagination:
enabled: true
---
建立网站时,我没有得到任何警告,但是当我访问该链接(http://localhost:4000/category/foo
)时,如果有四个帖子的类别为Foo
,则没有呈现的按钮:
帖子后事例: 2019-06-28-foo-test.html :
---
layout: post
title: "Foo HTML Test"
date: 2019-06-28 10:14:18 -0500
comments: true
categories: Foo
---
为什么分页在我的Jekyll网站上无法进行分类?