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

Show two posts, but only paginate one

Open frazerf opened this issue 6 years ago • 0 comments

Sorry for the confusing title but it's the best way I could explain my problem in one sentence. Explanation below -

I'm using gatsby-paginate to show one post at a time on my homepage, like so -

screen shot 2018-08-09 at 9 51 04

When the next link is clicked it goes to the next post which is exactly what I want to happen.

However, I'm wanting to tease the next post on the present post page. Similiar to this -

screen shot 2018-08-09 at 9 49 54

I could update the pageLength: 2 which outputs two posts (which is what I want) but obviously the next link goes to the third and fouth post when I only want it to go to the second post and show the third as a teaser.

Is this possible to do with gatsby paginate or am I approaching it all wrong?

frazerf avatar Aug 09 '18 08:08 frazerf