1.0.0 • Published 5 years ago

@rheajt/gatsby-source-rss v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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
    }
  }
}