Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong pagination link #235

Open
me-nkr opened this issue May 24, 2022 · 1 comment
Open

Wrong pagination link #235

me-nkr opened this issue May 24, 2022 · 1 comment

Comments

@me-nkr
Copy link

me-nkr commented May 24, 2022

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 ?

@pizaranha
Copy link

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

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

to 👇

pagination: permalink: '/page:num/'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants