Simplify podcast highlight labels on episodes page

This commit is contained in:
nmemmert
2026-04-27 16:39:54 -04:00
parent b26103b7b1
commit 10bd6848ef
+1 -1
View File
@@ -1025,7 +1025,7 @@ function PodcastHighlightsSection({ content }: { content: SiteContent }) {
<div className="resources-list"> <div className="resources-list">
{links.map(link => { {links.map(link => {
const hasRichContent = !!(link.embedUrl || (link.discussionQuestions ?? []).length > 0 || link.showNotes) const hasRichContent = !!(link.embedUrl || (link.discussionQuestions ?? []).length > 0 || link.showNotes)
const label = <>{link.episodeNumber ? `Ep. ${link.episodeNumber}: ` : ''}{link.title || link.url}{link.summary ? `${link.summary}` : ''}</> const label = <>{link.episodeNumber ? `Ep. ${link.episodeNumber}: ` : ''}{link.title || link.url}</>
// Use external link only when there's a url AND no rich detail-page content // Use external link only when there's a url AND no rich detail-page content
if (!hasRichContent && link.url) { if (!hasRichContent && link.url) {
return ( return (