Skip to content

Commit

Permalink
Rename podcast (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChinchilla committed Sep 5, 2024
1 parent 72573be commit 9df021d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
7 changes: 4 additions & 3 deletions src/components/Podcast.astro
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ function slugify(str) {
<div class="mt-2">
<div class="mt-2">
<!-- TODO: Is there a less brittle way? -->
<!-- TODO: Find a way to show shows before renaming -->
{
podcast.link === 'https://chinchillasqueaks.substack.com/podcast' ? (
podcast.link === 'https://chrischinchilla.com/podcast' ? (
<a
href="/podcast/chinchillasqueaks"
href="/podcast/techlounge"
class="bg-gray-100 dark:bg-slate-700 inline-block mr-2 mb-2 py-0.5 px-2 font-medium"
>
Chinchilla Squeaks
Tech Lounge
</a>
) : (
<a
Expand Down
3 changes: 2 additions & 1 deletion src/layouts/PodcastLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ if (podcast.title.length === 2) {
</div>

<div class="mt-2">
<div class="my-2" set:html={truncateMarkdown(podcast.description, { limit: 400, ellipsis: true })} />
<!-- TODO: Improve this -->
<div class="my-2" set:html={truncateMarkdown(podcast.description, { limit: 250, 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
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export async function getStaticPaths({ paginate }) {
const { page } = Astro.props;
const meta = {
title: 'Chinchilla Squeaks',
description:
'My pre-eminent podcast, Chinchilla Squeaks, has run for nearly eight years and taken me all over the globe. It runs every other week as an interview with a tech or creative luminary and every other week featuring interesting links and news.',
title: 'Tech Lounge',
description: 'My new, relauched podcast that invites you for a cosy chat about technology. Every two weeks I interview luminaries and thought leaders and every two weeks Cate Lawrence and I dig deep into two topics.',
// 'My pre-eminent podcast, Chinchilla Squeaks, has run for nearly eight years and taken me all over the globe. It runs every other week as an interview with a tech or creative luminary and every other week featuring interesting links and news.',
// canonical: post.canonical || url,
image: showImage,
// noindex: BLOG?.post?.noindex,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ const { episode, episodeData } = Astro.props;
const meta = {
title: 'Podcasts',
description:
'My pre-eminent podcast, Chinchilla Squeaks, has run for nearly eight years and taken me all over the globe. I have dabbled in other shows. They will be listed here again in the near future.',
description: 'My new, relauched podcast that invites you for a cosy chat about technology. Every two weeks I interview luminaries and thought leaders and every two weeks Cate Lawrence and I dig deep into two topics.',
// 'My pre-eminent podcast, Chinchilla Squeaks, has run for nearly eight years and taken me all over the globe. I have dabbled in other shows. They will be listed here again in the near future.',
// canonical: post.canonical || url,
// image: await findImage(post.image),
// noindex: BLOG?.post?.noindex,
Expand Down

0 comments on commit 9df021d

Please sign in to comment.