@rheajt/gatsby-source-rss

Fork of Johnathan Dublin's RSS source plugin for GatsbyJS to include custom fields

Usage no npm install needed!

<script type="module">
  import rheajtGatsbySourceRss from 'https://cdn.skypack.dev/@rheajt/gatsby-source-rss';
</script>

README

gatsby-source-rss

Fork of the gatsby-source-rss plugin to allow for custom RSS fields.

Usage

Add the following to your gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-source-rss',
      options: {
        rssURL: 'https://blog.jordanrhea.com/rss.xml',
        customFields: {
          item: ['tags'],
        },
      },
    },
  ],
};

Then, grab the data in graphql:

allRssFeedItem {
  edges {
    node {
      id
      youtube
      tags
      title
      content
      link
    }
  }
}