feat: publish Matt Glaman podcast episode

This commit is contained in:
Oliver Davies 2023-11-10 09:20:44 +00:00
parent 09130ebd72
commit fc0d61e33a
5 changed files with 37 additions and 6 deletions

View file

@ -1,6 +1,6 @@
---
import Layout from "~/layouts/Layout.astro";
import Markdown from "~/components/Markdown.astro";
import Layout from "~/layouts/PodcastEpisodeLayout.astro";
import { getCollection } from "astro:content";
export async function getStaticPaths() {

View file

@ -18,9 +18,9 @@ const parser = new MarkdownIt();
---
<PageLayout title="The Beyond Blocks podcast">
{filteredEpisodes.isEmpty() ? (
<p>Coming soon...</p>
) : (
<p>A weekly podcast about Drupal, open-source, and related software development topics.</p>
{filteredEpisodes && (
<>
<h2>Episodes</h2>
@ -33,6 +33,10 @@ const parser = new MarkdownIt();
</time>
<Markdown set:html={sanitizeHtml(parser.render(episode.body))} />
<footer class="mt-4">
<a href={`/podcast/${episode.slug}`}>Listen now &rarr;</a>
</footer>
</article>
))}
</>