diff --git a/layouts/podcast.11ty.js b/layouts/podcast.11ty.js index 9813362..bb5ecae 100644 --- a/layouts/podcast.11ty.js +++ b/layouts/podcast.11ty.js @@ -63,10 +63,10 @@ class PodcastFeed { // itunesDuration: duration, } if (episode.data.podcast.transcriptUrl) { - item.customElements.push({ 'podcast:transcript': [{_attr:{ + item.customElements.push({ 'podcast:transcript': {_attr:{ url:`${episode.data.podcast.transcriptUrl}`, type:"application/x-subrip" - }}] + }} }) console.log() } @@ -77,7 +77,7 @@ class PodcastFeed { // cache the xml to send to clients const xml = feed.buildXml(); - return xml + return xml.replace('>',' />') } }