Nine-Pin Masters

    gatsby-source-opml

    1.0.5 • Public • Published

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

    Install

    npm i gatsby-source-opml

    DownloadsWeekly Downloads

    3

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    5.31 kB

    Total Files

    5

    Last publish

    Collaborators

    • smoczysko