@vojtaholik/gatsby-theme-simplecast
v1.0.8
Published
Simplecast gatsby theme.
Downloads
4
Maintainers
Readme
Gatsby Theme Simplecast
Gatsby theme that sources data from Simplecast API which can be combined with Markdown files to associate more information to each episode. Inspired by syntax.fm.
Installation
To use this theme in your Gatsby sites, follow these instructions:
- Install the theme
yarn add @vojtaholik/gatsby-theme-simplecast
- Add the theme to your
gatsby-config.js
:
module.exports = {
plugins: [
{
resolve: '@vojtaholik/gatsby-theme-simplecast',
options: {
podcastId: PODCAST_ID, // theme uses mockup data if no podcastId provided
simplecastApiSecret: SIMPLECAST_API_SECRET,
markdownPath: 'content/episodes',
},
},
],
}
Plugin options
simplecastApiSecret
: Grab your Simplecast API token here.podcastId
: Podcast ID can be found in your Simplecast account under embeds settings.markdownPath
: Path to your markdown files. For markdown file to show up, it'sfrontmatter.id
must matchepisode.id
.episodeSlug
: default "show". (/show/05/episode-title
)
Create index page in
src/pages/index.js
- You can use this example which displays latest episode by default.
Start your site
gatsby develop