Merge branch 'develop' of github.com:jgonyea/grav-plugin-podcast into develop

This commit is contained in:
Jeremy Gonyea
2024-04-11 14:47:48 -04:00
3 changed files with 7 additions and 1 deletions

View File

@@ -43,6 +43,10 @@ form:
type: text
label: PLUGIN_PODCAST.ADMIN.CHANNEL.CHANNEL_META.PODCAST_SUBTITLE_LABEL
help: PLUGIN_PODCAST.ADMIN.CHANNEL.CHANNEL_META.PODCAST_SUBTITLE_HELPTEXT
header.podcast.itunes.summary:
type: textarea
label: PLUGIN_PODCAST.ADMIN.CHANNEL.CHANNEL_META.PODCAST_SUMMARY_LABEL
help: PLUGIN_PODCAST.ADMIN.CHANNEL.CHANNEL_META.PODCAST_SUMMARY_HELPTEXT
header.podcast.description:
type: markdown
label: PLUGIN_PODCAST.ADMIN.CHANNEL.CHANNEL_META.PODCAST_DESCRIPTION_LABEL

View File

@@ -32,6 +32,8 @@ en:
PODCAST_TITLE_HELPTEXT: Used in the RSS feed.
PODCAST_SUBTITLE_LABEL: iTunes Subtitle
PODCAST_SUBTITLE_HELPTEXT: 'Example: "A show about everything..."'
PODCAST_SUMMARY_LABEL: iTunes Summary
PODCAST_SUMMARY_HELPTEXT: iTunes summary (if empty, will fallback to podcast page content, then channel description)
PODCAST_DESCRIPTION_LABEL: Channel Description
PODCAST_LINK_LABEL: Channel URL
PODCAST_LINK_HELPTEXT: Used in the RSS feed.

View File

@@ -14,7 +14,7 @@
<copyright>{{ channel.header.podcast.copyright }}</copyright>
<itunes:subtitle>{{ channel.header.podcast.itunes.subtitle }}</itunes:subtitle>
<itunes:author>{{ channel.header.podcast.itunes.author }}</itunes:author>
<itunes:summary>{{ (channel.content ? channel.content : channel.header.podcast.description)|striptags }}</itunes:summary>
<itunes:summary>{{ channel.header.podcast.itunes.summary ?: (channel.content ? channel.content : channel.header.podcast.description)|striptags }}</itunes:summary>
<description>{{ channel.header.podcast.description|striptags }}</description>
<itunes:owner>
<itunes:name>{{ channel.header.podcast.itunes.owner.name }}</itunes:name>