From d28d26c453cf856ccf002d76c5f9dbb4b354613e Mon Sep 17 00:00:00 2001 From: Cameron Otsuka Date: Thu, 20 Nov 2025 18:31:58 -0800 Subject: [PATCH] don't create subfolder for show url --- src/pages/feed.xml.ts | 2 +- src/pages/podcasts/{[show]/[id] => [show]-[id]}/index.astro | 0 .../podcasts/{[show]/[id] => [show]-[id]}/opengraph.png.ts | 0 src/pages/podcasts/index.astro | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename src/pages/podcasts/{[show]/[id] => [show]-[id]}/index.astro (100%) rename src/pages/podcasts/{[show]/[id] => [show]-[id]}/opengraph.png.ts (100%) diff --git a/src/pages/feed.xml.ts b/src/pages/feed.xml.ts index b63b9f1..6e175c0 100644 --- a/src/pages/feed.xml.ts +++ b/src/pages/feed.xml.ts @@ -17,7 +17,7 @@ export async function GET(context: any) { const podcasts = await getCollection('podcasts'); const podcastItems = podcasts.map((podcast) => ({ title: podcast.data.title, - link: `/podcasts/${createSlug(podcast.data.show)}/${podcast.id}/`, + link: `/podcasts/${createSlug(podcast.data.show)}-${podcast.id}/`, pubDate: podcast.data.date, description: `${podcast.data.show} - ${podcast.data.description}`, categories: (podcast.data.tags ?? []).concat(podcast.data.type).concat(podcast.data.show).concat('podcasts') diff --git a/src/pages/podcasts/[show]/[id]/index.astro b/src/pages/podcasts/[show]-[id]/index.astro similarity index 100% rename from src/pages/podcasts/[show]/[id]/index.astro rename to src/pages/podcasts/[show]-[id]/index.astro diff --git a/src/pages/podcasts/[show]/[id]/opengraph.png.ts b/src/pages/podcasts/[show]-[id]/opengraph.png.ts similarity index 100% rename from src/pages/podcasts/[show]/[id]/opengraph.png.ts rename to src/pages/podcasts/[show]-[id]/opengraph.png.ts diff --git a/src/pages/podcasts/index.astro b/src/pages/podcasts/index.astro index 8d494f1..46b3dc0 100644 --- a/src/pages/podcasts/index.astro +++ b/src/pages/podcasts/index.astro @@ -14,7 +14,7 @@ const sortedPodcasts = podcasts.sort((a, b) => b.data.date.getTime() - a.data.da {sortedPodcasts.map((podcast) => { const date = formatDate(podcast.data.date); return ( -
{podcast.data.title}
+
{podcast.data.title}
{podcast.data.show} - {podcast.data.description}
-- 2.52.0