Skip to content

Commit

Permalink
Temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChinchilla committed Aug 6, 2024
1 parent 78fdaad commit 0f15f7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/layouts/PodcastLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ 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 All @@ -22,7 +23,7 @@ const meta: MetaSEO = {
title: frontmatter?.title,
image: podcast.image.att_href,
// TODO: Switch to using manual FM override
description: truncateMarkdown(podcast.description, { limit: 500, ellipsis: true })
description: truncateMarkdown(podcast.description, { limit: 400, ellipsis: true })
};
function slugify(str) {
Expand Down Expand Up @@ -81,7 +82,7 @@ if (podcast.title.length === 2) {
</div>

<div class="mt-2">
<div class="my-2" set:html={truncateMarkdown(podcast.description, { limit: 500, ellipsis: true })} />
<div class="my-2" set:html={truncateMarkdown(podcast.description, { limit: 400, 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 0f15f7a

Please sign in to comment.