I have got some markdown (.md) files where i have defined some metadata fields along with a category field. In my specific example, i have got only two categories regarding all my .md files.
Afterwards in my gatsby-node.js file, i try to access all these categories and provide them along with their specific posts to a particular template js (Comply.js) file by creating different urls for access. Additionally i use gatsby-awesome-pagination in the same template js (Comply.js) file to define pagination for each specific url.
For your better assistance i attach some images regarding category url and pagination url.
Finally i define my template js (Comply.js) file, where i do not get the required posts via pagination plugin. Category urls work fine and i get all the required posts belonging to a specific category.
I do not get the pagination via next and previous links for specific category urls. (In my case, i have got only /comply and /nocomply category urls). Additionally, i think pagination receives all the posts and not the correct ones for each category that can only be viewed ONLY by visiting urls such as /comply/2, /comply/3 etc.
I have got some markdown (.md) files where i have defined some metadata fields along with a category field. In my specific example, i have got only two categories regarding all my .md files.
etc
Afterwards in my gatsby-node.js file, i try to access all these categories and provide them along with their specific posts to a particular template js (Comply.js) file by creating different urls for access. Additionally i use gatsby-awesome-pagination in the same template js (Comply.js) file to define pagination for each specific url.
For your better assistance i attach some images regarding category url and pagination url.
Finally i define my template js (Comply.js) file, where i do not get the required posts via pagination plugin. Category urls work fine and i get all the required posts belonging to a specific category.
I do not get the pagination via next and previous links for specific category urls. (In my case, i have got only /comply and /nocomply category urls). Additionally, i think pagination receives all the posts and not the correct ones for each category that can only be viewed ONLY by visiting urls such as /comply/2, /comply/3 etc.
Category url with correct data (no pagination links)
Pagination url with links and no correct data
Any idea that could help me?
Regards