Skip to content

Commit

Permalink
✨ make season and episodeNumber optional for episodes
Browse files Browse the repository at this point in the history
  • Loading branch information
miller-productions committed Feb 16, 2020
1 parent d0cf4a2 commit 04a2be6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-plugin-podcast-feed-mdx",
"version": "0.1.0-alpha.5",
"version": "0.1.0-alpha.6",
"description": "Gatsby plugin to generate a podcast rss feed using mdx for episodes.",
"author": "Dan Miller",
"private": false,
Expand Down
4 changes: 2 additions & 2 deletions src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ exports.onPostBuild = async ({ graphql }, pluginOptions) => {
custom_elements: [
{ 'itunes:title': title },
{ 'itunes:subtitle': subtitle },
{ 'itunes:season': season },
{ 'itunes:episode': episodeNumber },
season && { 'itunes:season': season },
episodeNumber && { 'itunes:episode': episodeNumber },
{ 'itunes:duration': duration },
{ 'itunes:episodeType': episodeType },
{ 'itunes:explicit': explicit },
Expand Down

0 comments on commit 04a2be6

Please sign in to comment.