diff --git a/CHANGELOG.md b/CHANGELOG.md index d41b596..a70926e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +# v2.1.6 +## 09/20/2020 + +1. [](#new) + * Added podcast episode number to feed. + +2. [](#improved) + * Updated News category options + +3. [](#bugfix) + * Updated field name to disable page media upload field on channels, series, and episodes. + # v2.1.5 ## 01/28/2020 diff --git a/blueprints.yaml b/blueprints.yaml index 096db72..523724f 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,5 +1,5 @@ name: Podcast -version: 2.1.5 +version: 2.1.6 description: Creates Podcast page types and related podcast RSS feeds icon: microphone author: diff --git a/blueprints/podcast-channel.yaml b/blueprints/podcast-channel.yaml index aaa9077..71c92d2 100644 --- a/blueprints/podcast-channel.yaml +++ b/blueprints/podcast-channel.yaml @@ -14,7 +14,7 @@ form: ordering@: 0 title: Podcast Page Content fields: - uploads: + header.media_order: unset@: true header.title: type: text diff --git a/blueprints/podcast-episode.yaml b/blueprints/podcast-episode.yaml index dadc142..99261dc 100644 --- a/blueprints/podcast-episode.yaml +++ b/blueprints/podcast-episode.yaml @@ -11,19 +11,23 @@ form: fields: content: type: tab - ordering@: 0 title: Podcast fields: - uploads: - unset@: true header.title: - ordering@: 0 + ordering@: 1 type: text label: Episode Title header.subtitle: - ordering@: 1 + ordering@: 2 type: text label: Episode subtitle + header.podcast.episode_number: + ordering@: 3 + type: text + label: Episode number + size: x-small + header.media_order: + unset@: true podcastAudio: type: tab title: Podcast Audio diff --git a/blueprints/podcast-series.yaml b/blueprints/podcast-series.yaml index 59290bc..2eec546 100644 --- a/blueprints/podcast-series.yaml +++ b/blueprints/podcast-series.yaml @@ -14,7 +14,7 @@ form: ordering@: 0 title: Podcast Series Content fields: - uploads: + header.media_order: unset@: true header.title: type: text diff --git a/data/iTunesCategories.yaml b/data/iTunesCategories.yaml index b82da72..ab79135 100644 --- a/data/iTunesCategories.yaml +++ b/data/iTunesCategories.yaml @@ -39,7 +39,14 @@ Kids & Family: - Kids & Family Music: - Music -News & Politics: +News: + - Business News + - Daily News + - Entertainment News + - News Commentary + - Politics + - Sports News + - Tech News Religion & Spirituality: - Buddhism - Christianity diff --git a/templates/feed.rss.twig b/templates/feed.rss.twig index 2fddfcd..2d0c1b2 100644 --- a/templates/feed.rss.twig +++ b/templates/feed.rss.twig @@ -9,7 +9,7 @@ {{ channel.title }} -{{ page.url(true) }} +{{ header.podcast.link }} {{ channel.header.podcast.channelLanguage }} {{ channel.header.podcast.copyright }} {{ channel.header.podcast.itunes.subtitle }} @@ -17,33 +17,37 @@ {{ (channel.content ? channel.content : channel.header.podcast.description)|striptags }} {{ channel.header.podcast.description|striptags }} -{{ channel.header.podcast.itunes.owner.name }} -{{ channel.header.podcast.itunes.owner.email }} + {{ channel.header.podcast.itunes.owner.name }} + {{ channel.header.podcast.itunes.owner.email }} - + {{ channel.header.podcast.itunes.explicit }} {% set episodes = page.collection({ 'items': '@self.descendants', 'order': {'by': 'date', 'dir': 'desc'}} ).ofType('podcast-episode') %} {% for episode in episodes %} {% if episode.header.podcast.audio.meta %} -{{episode.title}} -{{ episode.header.podcast.itunes.author }} -{{ episdoe.header.podcast.subtitle }} -{{episode.content|striptags|truncate(120, true, " ", "…")}} - -{% if (episode.header.podcast.audio.remote) %} - -{{episode.header.podcast.audio.remote}} -{% else %} - -{{base_url_absolute}}/{{episode.header.podcast.audio.meta.guid|absolute_url}} -{% endif %} -{{ episode.header.publish_date ? episode.header.publish_date|date('r') : episode.date|date('r')}} -{{episode.header.podcast.audio.meta.duration}} -{{episode.header.podcast.itunes.explicit}} + {{ episode.title }} + {{ episode.url(true) }} + {% if episode.header.podcast.episode_number %} + {{ episode.header.podcast.episode_number }} + {% endif %} + {{ episode.header.podcast.itunes.author }} + {{ episdoe.header.podcast.subtitle }} + {{episode.content|striptags|truncate(120, true, " ", "…")}} + + {% if (episode.header.podcast.audio.remote) %} + + {{episode.header.podcast.audio.remote}} + {% else %} + + {{base_url_absolute}}/{{episode.header.podcast.audio.meta.guid|absolute_url}} + {% endif %} + {{ episode.header.publish_date ? episode.header.publish_date|date('r') : episode.date|date('r')}} + {{episode.header.podcast.audio.meta.duration}} + {{episode.header.podcast.itunes.explicit}} {% endif %} {% endfor %}