jekyll / jekyll-paginate

NO LONGER UNDER ACTIVE DEVELOPMENT as of Jekyll 3: Pagination Generator for Jekyll

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Absolute permalinks break paginator when permalink is specified for index file

parkr opened this issue · comments

Originally submitted by @benbalter:

Here's a fun one...

Steps to reproduce

Create a new site
Create 2 or more dummy posts
Create an index file, setting permalink: / in the yml front matter
Add a paginator loop to the index file
Specific pagination (e.g., paginate: 5) and relative_permalinks: false in _config.yml
Expected

Index.html will be paginated with the specified number of posts
Actual

Index.html has 1-2 posts (missing the rest)
Resolution

Specify relative_permalinks: true in config.yml
Don't specify a permalink in index.html's YML frontmatter
Wat.

H/t @jlord for discovering it.

See jekyll/jekyll#1625 for more details.