You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.
I'm struggling to add the pagination :( I've tried both plugins (gatsby-pagination and gatsby-paginate) but I see no difference. I still get the full list of posts. With gatsby-pagination I'm adding the following to gatsby-node.js:
// Then the following blocks...
// Create category pages
// Create posts
// and pages.
Any idea of what I'm doing wrong? I'm still learning about Gatsby. Cheers in advance!
The text was updated successfully, but these errors were encountered:
I'm struggling to add the pagination :( I've tried both plugins (gatsby-pagination and gatsby-paginate) but I see no difference. I still get the full list of posts. With gatsby-pagination I'm adding the following to gatsby-node.js:
const { createPaginationPages } = require("gatsby-pagination");
const indexPage = path.resolve("./src/pages/index.js");
const items = result.data.allMarkdownRemark.edges;
createPaginationPages({
createPage: createPage,
edges: items,
component: indexPage,
limit: 5
});
// Then the following blocks...
// Create category pages
// Create posts
// and pages.
Any idea of what I'm doing wrong? I'm still learning about Gatsby. Cheers in advance!
The text was updated successfully, but these errors were encountered: