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

Comments

Projects
None yet
3 participants
@gabelevi

gabelevi commented Feb 17, 2015

(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

This comment has been minimized.

Show comment
Hide comment
@parkr

parkr Feb 17, 2015

Member

/cc #23.

Thanks!

Member

parkr commented Feb 17, 2015

/cc #23.

Thanks!

@gabelevi

This comment has been minimized.

Show comment
Hide comment
@gabelevi

gabelevi Feb 17, 2015

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

gabelevi commented Feb 17, 2015

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

@corysimmons

This comment has been minimized.

Show comment
Hide comment
@corysimmons

corysimmons Mar 4, 2015

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/

corysimmons commented Mar 4, 2015

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

This comment has been minimized.

Show comment
Hide comment
@parkr

parkr Mar 4, 2015

Member

@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

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