Skip to content

Commit

Permalink
First draft
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChinchilla committed Nov 18, 2023
1 parent 5eebadc commit 56a9495
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const podcasts = defineCollection({
description: z.string().optional(),
image: z.string().optional(),
audio_preview_url: z.string().optional(),
extra: z.string().optional(),
embed: z.string().optional(),
}),
});

Expand Down
2 changes: 2 additions & 0 deletions src/content/podcasts/loris-degioanni-of-sysdig.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
embed: 'https://share.descript.com/embed/CMjM2PWxpl0'
---
6 changes: 5 additions & 1 deletion src/layouts/PodcastLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,14 @@ function slugify(str) {

<div class="mt-2">
<div class="my-2" set:html={truncateMarkdown(podcast.description, { limit: 500, ellipsis: true })} />
<h2 class="text-xl sm:text-2xl leading-tight mb-2 font-heading dark:text-slate-300">Listen and download</h2>
<audio controls src={podcast.enclosure.att_url} preload="none">
<a href={podcast.enclosure.att_url}>Download audio</a>
</audio>
{episodeData ? episodeData.extra : ''}
<h2 class="text-xl sm:text-2xl leading-tight mb-2 font-heading dark:text-slate-300">
Interactive transcript
</h2>
{episodeData ? <iframe src={episodeData.embed} width="100%" height="520" allowfullscreen /> : ''}
</div>
</article>
</div>
Expand Down

0 comments on commit 56a9495

Please sign in to comment.