Simplify podcast highlight labels on episodes page
This commit is contained in:
1 parent
b26103b7b1
commit
10bd6848ef
1 file changed
+1
-1
+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