feat: publish Matt Glaman podcast episode
This commit is contained in:
parent
09130ebd72
commit
fc0d61e33a
5 changed files with 37 additions and 6 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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 →</a>
|
||||
</footer>
|
||||
</article>
|
||||
))}
|
||||
</>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue