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 doesn't generate page directories when permalink is set #25

Closed
gabelevi opened this issue Feb 17, 2015 · 4 comments · Fixed by jekyll/jekyll#3551
Closed

Pagination doesn't generate page directories when permalink is set #25

gabelevi opened this issue Feb 17, 2015 · 4 comments · Fixed by jekyll/jekyll#3551

Comments

@gabelevi
Copy link

(Issue copied from jekyll/jekyll#3471)

This tripped me up for 30 mins or so. I was trying to paginate /blog/index.html, but I had permalink: /blog set (I'm a n00b and I don't know what I'm doing). I did have paginate_path set correctly. The result was that visiting /blog would always start on the last page of pagination and be unable to find the other pages. None of the /blog/pageN/directories were generated.

In retrospect I can kind of understand what's going on. I suppose jekyll wanted to write _site/blog/page2/index.html, but permalink overrode it to write _site/blog/index.html, so each page was written to the same file. Perhaps an error when you keep overwriting the same file would help n00bs like me!

@parkr
Copy link
Member

parkr commented Feb 17, 2015

/cc #23.

Thanks!

@gabelevi
Copy link
Author

Ah sorry for the dupe...I checked the issues before filing but didn't check the duplicates. Glad it's getting fixed!

@corysimmons
Copy link

This tripped me up for around 30 mins as well. Can someone please update the docs here to express this warning? http://jekyllrb.com/docs/pagination/

@parkr
Copy link
Member

parkr commented Mar 4, 2015

@corysimmons Would you be able to submit a pull request? That page is here: https://github.com/jekyll/jekyll/blob/master/site/_docs/pagination.md

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

Successfully merging a pull request may close this issue.

3 participants