gridsome-source-rss
v1.0.0
Published
> Use an RSS feed as a source for gridsome
Downloads
21
Maintainers
Readme
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.