From 57ef57319a2b02cd7db3fff0de0399ed95facf54 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Fri, 11 Oct 2024 14:55:56 -0700 Subject: [PATCH] fix: RSS Trailing slash problem --- src/params/extra.ts | 3 +++ src/routes/{[slug] => [slug=extra]}/+page.svelte | 0 src/routes/{[slug] => [slug=extra]}/+page.ts | 0 3 files changed, 3 insertions(+) create mode 100644 src/params/extra.ts rename src/routes/{[slug] => [slug=extra]}/+page.svelte (100%) rename src/routes/{[slug] => [slug=extra]}/+page.ts (100%) diff --git a/src/params/extra.ts b/src/params/extra.ts new file mode 100644 index 0000000..27a8a30 --- /dev/null +++ b/src/params/extra.ts @@ -0,0 +1,3 @@ +export function match(param: string) { + return param !== 'rss.xml'; +} diff --git a/src/routes/[slug]/+page.svelte b/src/routes/[slug=extra]/+page.svelte similarity index 100% rename from src/routes/[slug]/+page.svelte rename to src/routes/[slug=extra]/+page.svelte diff --git a/src/routes/[slug]/+page.ts b/src/routes/[slug=extra]/+page.ts similarity index 100% rename from src/routes/[slug]/+page.ts rename to src/routes/[slug=extra]/+page.ts