jekyll-paginate icon indicating copy to clipboard operation
jekyll-paginate copied to clipboard

Insistence on using index.html as the pagination template

Open eyalroz opened this issue 7 years ago • 6 comments

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.

eyalroz avatar Apr 12 '17 21:04 eyalroz

I'm using the following:

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

I'm encountering the same problem as eyalroz.

ishwon avatar May 09 '17 07:05 ishwon

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.

michaellee avatar Jul 15 '17 18:07 michaellee

@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).

eyalroz avatar Jul 15 '17 21:07 eyalroz

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.

michaellee avatar Jul 16 '17 01:07 michaellee

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

davideghz avatar Apr 19 '18 12:04 davideghz

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

naveenjujaray avatar Jul 06 '20 15:07 naveenjujaray