Skip to content

Smoczysko/gatsby-source-opml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatsby-source-opml

Gatsby source plugin exposing content of OPML file as GraphQL resource.

Install

npm install --save gatsby-source-opml

How to use

In order to use this plugin you must have a valid OPML file in your Gatsby project workspace. Typically, those files are exported by podcast players (like Pocket Casts).

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: "gatsby-source-opml",
      options: {
        // Url to opml file, relative to project root directory
        file: `data/podcasts.opml`,
      },
    },
  ]
};

How to query

allOpmlPodcast {
  edges {
    node {
      id
      name
      description
      url
      image {
        url
      }
    }
  }
}

About

Gatsby source plugin allowing to read OPML files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published