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

Insistence on using index.html as the pagination template #37

Open
eyalroz opened this issue Apr 12, 2017 · 6 comments
Open

Insistence on using index.html as the pagination template #37

eyalroz opened this issue Apr 12, 2017 · 6 comments

Comments

@eyalroz
Copy link

eyalroz commented Apr 12, 2017

I'm using the Beautiful Jekyll theme to create a small personal website. On my site, I don't want posts to appear in the front page, the index page; so I removed the relevant code from index.html (in fact, I got rid of it in favor of an index.md with static content). Now I get the warning message:

Pagination: Pagination is enabled, but I couldn't find an index.html page to use as the pagination template. Skipping pagination.

I found this issue page on this matter at the Jekyll core project, where it's claimed this is a Jekyll-paginate issue. Well, here I am reporting it to you :-(

I'll state that I'm willing to move the pagination code elsewhere, so maybe there's some workaround in my case.

@ishwon
Copy link

ishwon commented May 9, 2017

I'm using the following:

  • jekyll (3.4.3)
  • jekyll-paginate (1.1.0)

I'm encountering the same problem as eyalroz.

@michaellee
Copy link

michaellee commented Jul 15, 2017

I found this to be helpful https://stackoverflow.com/a/29177455/703220

Basically do as the warning tells you, instead of using a non-index.html file use an index.html.

In my case, I wanted to put pagination on a file called archive.html.

The solution was to put created a folder called archive and place a file called index.html

Then just update the permalink and paginate_path

Update

Had some issues regarding the next and previous navigations not rendering correctly. Checked out https://github.com/sverrirs/jekyll-paginate-v2 and it's working a lot better. Plus didn't have to use the nested index.html, works on a non-index.html file.

@eyalroz
Copy link
Author

eyalroz commented Jul 15, 2017

@michaellee : So, you're essentially suggesting the use of an alternate version of jekyll-paginate? I might look into it, but that does not resolve the issue for this package (= jekyll/jekyll-paginate).

@michaellee
Copy link

Seeing as this plugin isn't under active development, thought it was a valid solution to point to a project that fixed my problem is all.

@davideghz
Copy link

Looks like jekyll-paginate-v2 is not compatible with github pages

@naveenjujaray
Copy link

yeah i agree with that paginate-v2 is not compatible with github pages

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

5 participants