Skip to content

Commit

Permalink
fix: only create pages for mardown in markdown-pages directory
Browse files Browse the repository at this point in the history
  • Loading branch information
zstix committed Sep 8, 2020
1 parent 0dd4c94 commit 5b78418
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ exports.createPages = async ({ actions, graphql, reporter }) => {

const result = await graphql(`
{
allMdx(limit: 1000) {
allMdx(
limit: 1000
filter: { fileAbsolutePath: { regex: "/src/markdown-pages/" } }
) {
edges {
node {
fileAbsolutePath
Expand Down

0 comments on commit 5b78418

Please sign in to comment.