jekyll-paginate-v2 icon indicating copy to clipboard operation
jekyll-paginate-v2 copied to clipboard

Wrong pagination link

Open me-nkr opened this issue 2 years ago • 1 comments

I have a category with an index.html, here's my directory structure

root/
  |- _config.yml
  |- cars/
    |- index.html
    |- _posts/

and the index.html front matter looks like this

---
layout: single
title: name of car
pagination:
  enabled: true
  category: cars
  permalink: /:num/
---

when the site is built, I can see a directory named 2 with an index.html inside. Also I am able to find the next page at URL */cars/2/**. But the link to page 2 is /page2

<li><a href="/page2">Next</a></li>

Is this a bug or is it happening because of some configuration mistakes ?

me-nkr avatar May 24 '22 17:05 me-nkr

I used to have the same issue. I solve it changing the section 👇

pagination: permalink: '/page/:num/'

to 👇

pagination: permalink: '/page:num/'

pizaranha avatar Jul 29 '22 19:07 pizaranha