Simplify podcast highlight labels on episodes page
This commit is contained in:
+1
-1
@@ -1025,7 +1025,7 @@ function PodcastHighlightsSection({ content }: { content: SiteContent }) {
|
||||
<div className="resources-list">
|
||||
{links.map(link => {
|
||||
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
|
||||
if (!hasRichContent && link.url) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user