gridsome-source-rss

1.0.0 • Public • Published

gridsome-source-rss

Use an RSS feed as a source for gridsome

Install

  • yarn add gridsome-source-rss
  • npm install gridsome-source-rss

Usage

module.exports = {
  plugins: [
    {
      use: "gridsome-source-rss",
      options: {
        feedUrl: "https://hnrss.org/frontpage",
        typeName: 'HNFrontpageItem'
        // Parser options, see: https://www.npmjs.com/package/rss-parser
        parser: {}
      }
    },
  ],
}

Options

feedUrl

URL of the feed, passed directly to parseURL.

typeName

Type name of the collection

parser

Parser options, see the rss-parser documentation. Use this to set HTTP options, for example.

Package Sidebar

Install

npm i gridsome-source-rss

Weekly Downloads

9

Version

1.0.0

License

MIT

Unpacked Size

3.16 kB

Total Files

6

Last publish

Collaborators

  • hochchristoph