Skip to content

Commit

Permalink
New podcast
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChinchilla committed Sep 23, 2024
1 parent 644bdd4 commit 8e4042a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/content/podcasts/wasm-at-kubecon-eu-2024.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
player_embed: '7d2a6e7d-7537-4c9d-8104-1459566c9179'
descript_embed: '2xgP1Emkxb0Kh7p310zMrN'
---
3 changes: 1 addition & 2 deletions src/layouts/PodcastLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { Image } from 'astro:assets';
import { type CollectionEntry } from 'astro:content';
import truncateMarkdown from 'markdown-truncate';
import { MetaSEO } from '~/types';
import { Debug } from 'astro:components';
export interface Props {}
Expand Down Expand Up @@ -83,7 +82,7 @@ if (podcast.title.length === 2) {

<div class="mt-2">
<!-- TODO: Improve this -->
<div class="my-2" set:html={truncateMarkdown(podcast.description, { limit: 250, ellipsis: true })} />
<div class="my-2" set:html={truncateMarkdown(podcast.description, { limit: 200, ellipsis: true })} />
<h2 class="text-xl sm:text-2xl leading-tight mb-2 font-heading dark:text-slate-300">Listen and download</h2>
{podcastID ?
<iframe height="200px" width="100%" frameborder="no" scrolling="no" seamless src=`https://player.simplecast.com/${podcastID}`></iframe>
Expand Down

0 comments on commit 8e4042a

Please sign in to comment.