From: Cameron Otsuka Date: Fri, 21 Nov 2025 02:31:58 +0000 (-0800) Subject: don't create subfolder for show url X-Git-Url: https://git.otsuka.systems/?a=commitdiff_plain;h=d28d26c453cf856ccf002d76c5f9dbb4b354613e;p=cotsuka.github.io don't create subfolder for show url --- 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}