Vagr9K / gatsby-advanced-starter

A high performance skeleton starter for GatsbyJS with an advanced feature set.
https://amaranth-demo.netlify.app/
MIT License
1.57k stars 405 forks source link

how can separate content on multiple pages #50

Closed AbhimanyuAryan closed 5 years ago

AbhimanyuAryan commented 6 years ago

Hey I want to keep 3 jsx pages and want to distribute content .md on those three pages. So for example

If I have my entire blog has 3 separate pages ie. maths, ai, computerscience

I want to sort of want three directories in content folder ie. maths, ai, computerscience and based on content kept on that it be render on those jsx pages. Is this possible?

If yes how?

Vagr9K commented 5 years ago

First of all, apologies for the late answer!

First of all take a look at: https://www.gatsbyjs.org/docs/adding-markdown-pages/.

Based on this knowledge you'll need to modify gatsby-node.js and add additional page components to src/templates.

In the starter, you can use the implementation of post.jsx, category.jsx and tag.jsx under src/templates as a reference.