gatsby-source-transistorfm
🎙 Gatsby source plugin for fetching show and episode data from Transistor.
Install
yarn add gatsby-source-transistorfm
How to use
// In your gatsby-config.jsplugins: resolve: 'gatsby-source-transistorfm' options: url: '...' ;
To use multiple Transistor feeds, just add another instance of the plugin configuration to gatsby-config.js
.
Example
// In your pages/*.js;;;; const pageQuery = graphql` { show: transistorShow { id title description episodes { id title content enclosure { url } image { childImageSharp { fluid(maxWidth: 560) { ...GatsbyImageSharpFluid } } } } image { childImageSharp { fluid(maxWidth: 560) { ...GatsbyImageSharpFluid } } } } }`; const IndexPage = { const show = ; return <ReactFragment> <h1>showtitle</h1> <p>showdescription</p> <Img fluid=showimagechildImageSharpfluid style= width: '260px' /> <hr /> showepisodes </ReactFragment> ;}; ;