Gatsby - Separating markdown files based on file structure
This article describes how markdown files are normally "split" in Gatsby and offers a solution that uses the file system to separate the files into different page types.
https://georgenance.com/dont-use-frontmatter-markdown-files-gatsby