meganesu / personal-site-v2

The Gatsby site that deploys to meganesulli.com
https://meganesulli.com
MIT License
2 stars 0 forks source link

Bug: Pages not in the /blog directory are ending up in my RSS feed #100

Open meganesu opened 1 year ago

meganesu commented 1 year ago

Pages like /now, /accessibility, /projects are showing up in my RSS feed on Feedly.

Looks like this happened around Jan 25. Check the commit history to see why this is happening.

meganesu commented 1 year ago

Fix: Need to update the query in my gatsby-plugin-feed config (in gatsby-config.mjs). Add a filter arg to only pull MDX files out of the blog directory (like on the /blog page).

filter: {
  internal: {
    # Example contentFilePath values:
    # For local development: /Users/megansullivan/Documents/personal-projects/personal-site-v2/blog/managing-focus-with-react-and-jest/index.mdx
    # On Netlify: /opt/build/repo/blog/why-use-graphql-sketchnote/index.mdx
    contentFilePath: { regex: "/(personal-site-v2|build/repo)/blog//" }
  }
}