Add structured show notes form to Episode Highlights; v1.2.3
Replace single showNotes textarea with five guided fields: Episode Summary, Key Themes, Scripture References, Key Quotes, and Resources & Links. Legacy showNotes content is preserved as a backward-compatible fallback — it auto-populates the Summary field in the admin editor and renders on the public episode detail page until overwritten with structured data. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
525ae85f6a
commit
5bc8245ed2
4 files changed
+113
-6
No files matched your search
+42
-2
@@ -716,6 +716,11 @@ function PodcastHighlightsSection({ content }: { content: SiteContent }) {
|
||||
|| isLikelySpotifyEpisodeUrl(link.url)
|
||||
|| (link.discussionQuestions ?? []).length > 0
|
||||
|| link.showNotes
|
||||
|| link.showNotesSummary
|
||||
|| (link.showNotesThemes ?? []).length > 0
|
||||
|| (link.showNotesScripture ?? []).length > 0
|
||||
|| (link.showNotesQuotes ?? []).length > 0
|
||||
|| (link.showNotesResources ?? []).length > 0
|
||||
)
|
||||
const dest = (!hasRichContent && link.url)
|
||||
? { external: link.url }
|
||||
@@ -1500,10 +1505,45 @@ function EpisodeDetailPage({ content }: { content: SiteContent }) {
|
||||
</a>
|
||||
)}
|
||||
|
||||
{episode.showNotes && (
|
||||
{(episode.showNotesSummary || (episode.showNotesThemes ?? []).length > 0 || (episode.showNotesScripture ?? []).length > 0 || (episode.showNotesQuotes ?? []).length > 0 || (episode.showNotesResources ?? []).length > 0 || episode.showNotes) && (
|
||||
<div className="episode-detail-show-notes">
|
||||
<h2 className="episode-detail-section-heading">Show Notes</h2>
|
||||
<p>{episode.showNotes}</p>
|
||||
{episode.showNotesSummary
|
||||
? <p>{episode.showNotesSummary}</p>
|
||||
: episode.showNotes && !(episode.showNotesThemes ?? []).length && <p>{episode.showNotes}</p>
|
||||
}
|
||||
{(episode.showNotesThemes ?? []).length > 0 && (
|
||||
<div className="episode-detail-show-notes-section">
|
||||
<h3 className="episode-detail-show-notes-heading">Key Themes</h3>
|
||||
<ul className="episode-detail-show-notes-list">
|
||||
{episode.showNotesThemes!.map((t, i) => <li key={i}>{t}</li>)}
|
||||
</ul>
|
||||
</div>
|
||||
)}
|
||||
{(episode.showNotesScripture ?? []).length > 0 && (
|
||||
<div className="episode-detail-show-notes-section">
|
||||
<h3 className="episode-detail-show-notes-heading">Scripture References</h3>
|
||||
<ul className="episode-detail-show-notes-list">
|
||||
{episode.showNotesScripture!.map((s, i) => <li key={i}>{s}</li>)}
|
||||
</ul>
|
||||
</div>
|
||||
)}
|
||||
{(episode.showNotesQuotes ?? []).length > 0 && (
|
||||
<div className="episode-detail-show-notes-section">
|
||||
<h3 className="episode-detail-show-notes-heading">Key Quotes</h3>
|
||||
{episode.showNotesQuotes!.map((q, i) => (
|
||||
<blockquote key={i} className="episode-detail-show-notes-quote">{q}</blockquote>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
{(episode.showNotesResources ?? []).length > 0 && (
|
||||
<div className="episode-detail-show-notes-section">
|
||||
<h3 className="episode-detail-show-notes-heading">Resources</h3>
|
||||
<ul className="episode-detail-show-notes-list">
|
||||
{episode.showNotesResources!.map((r, i) => <li key={i}>{r}</li>)}
|
||||
</ul>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
Reference in new issue
Block a user