File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export async function getAllEpisodes() {
6262 title : string ( ) ,
6363 published : number ( ) ,
6464 description : string ( ) ,
65+ content_encoded : optional ( string ( ) ) ,
6566 itunes_duration : number ( ) ,
6667 itunes_episode : optional ( number ( ) ) ,
6768 itunes_episodeType : string ( ) ,
@@ -86,6 +87,7 @@ export async function getAllEpisodes() {
8687 . map (
8788 async ( {
8889 description,
90+ content_encoded,
8991 id,
9092 title,
9193 enclosures,
@@ -98,11 +100,12 @@ export async function getAllEpisodes() {
98100 const episodeNumber =
99101 itunes_episodeType === 'bonus' ? 'Bonus' : `${ itunes_episode } ` ;
100102 const episodeSlug = dasherize ( title ) ;
103+ const episodeContent = content_encoded || description ;
101104
102105 return {
103106 id,
104107 title : `${ title } ` ,
105- content : description ,
108+ content : episodeContent ,
106109 description : truncate ( htmlToText ( description ) , 260 ) ,
107110 duration : itunes_duration ,
108111 episodeImage : itunes_image ?. href ,
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ const title = `${episode.title} - ${show.title} - Episode ${episode.episodeNumbe
182182 <h3 class =" section-heading-underlined mt-16 mb-8" >Show Notes</h3 >
183183
184184 <div
185- class =" prose prose-neutral dark:prose-invert mb-5 [&>h2]:mt-12 [&>h2]:flex [&>h2]:items-center [&>h2]:font-mono [&>h2]:text-sm [&>h2]:leading-7 [&>h2]:font-medium [&>h2]:text-slate-900 [&>h2]:before:mr-3 [&>h2]:before:h-3 [&>h2]:before:w-1.5 [&>h2]:before:rounded-r-full [&>h2]:before:bg-cyan-200 [&>h2:nth-of-type(3n)]:before:bg-violet-200 [&>h2:nth-of-type(3n+2)]:before:bg-indigo-200 [&>ul]:mt-6 [&>ul]:pl-5"
185+ class =" prose prose-neutral dark:prose-invert mb-5 [&>h2]:mt-12 [&>h2]:flex [&>h2]:items-center [&>h2]:font-mono [&>h2]:text-sm [&>h2]:leading-7 [&>h2]:font-medium [&>h2]:text-slate-900 [&>h2]:before:mr-3 [&>h2]:before:h-3 [&>h2]:before:w-1.5 [&>h2]:before:rounded-r-full [&>h2]:before:bg-cyan-200 [&>h2:nth-of-type(3n)]:before:bg-violet-200 [&>h2:nth-of-type(3n+2)]:before:bg-indigo-200 [&>ul]:mt-6 [&>ul]:pl-5 [&_li>p]:m-0 "
186186 >
187187 <Fragment set:html ={ episode .content } />
188188 </div >
You can’t perform that action at this time.
0 commit comments