From 991c333c8abda67110bd8e19d11e7abf507230af Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 11 Dec 2022 00:27:42 +0000 Subject: [PATCH] refactor: define slug as a string --- website/src/pages/archive/[year]/[month]/[day]/[slug].astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/pages/archive/[year]/[month]/[day]/[slug].astro b/website/src/pages/archive/[year]/[month]/[day]/[slug].astro index 2f8bb2bc..aaf4e01b 100644 --- a/website/src/pages/archive/[year]/[month]/[day]/[slug].astro +++ b/website/src/pages/archive/[year]/[month]/[day]/[slug].astro @@ -11,7 +11,7 @@ export async function getStaticPaths() { const slug = email.frontmatter.permalink .replace('archive/', '') .replace('\n', '') - .split('/')[3] + .split('/')[3] as string return { params: {