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

Pagination link broken #997

Closed
wvengen opened this issue May 6, 2017 · 5 comments
Closed

Pagination link broken #997

wvengen opened this issue May 6, 2017 · 5 comments

Comments

@wvengen
Copy link

wvengen commented May 6, 2017

When I'm using

paginate_path: /pages/:num/

the pagination link for the first page appears to be broken, for example see page 3, where page two is referenced correctly, but the first page shows as /page/:num/. Sounds a like a bug - or did I do something unsupported in the configuration?

@mmistakes
Copy link
Owner

What you have should work, not sure why it's not.

What happens if you remove / and do this in your _config.yml instead?

paginate_path: /page:num/

@wvengen
Copy link
Author

wvengen commented May 6, 2017

Thanks for your quick reply! It does work when I accept your suggestion (though I'm trying to get it working with the slash).

@mmistakes
Copy link
Owner

Think you're out of luck then as it appears to be a limitation with Jekyll's pagination plugin. All of their examples use page:num vs what you want page/:num.

The plugin is no longer being developed so not sure if filling a bug there will have any effect.

https://github.com/jekyll/jekyll-paginate

As an alternative Jekyll Paginate v2 is pretty great and more feature filled but it doesn't work with GitHub Pages unless you're building locally and pushing the built_site folder instead of having GH build.

https://github.com/sverrirs/jekyll-paginate-v2

@wvengen
Copy link
Author

wvengen commented May 6, 2017

Ah, sorry to bother you. Thanks!

wvengen added a commit to foodcoops/foodcoops.github.io that referenced this issue May 6, 2017
@mmistakes
Copy link
Owner

No worries.

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

No branches or pull requests

2 participants