diff --git a/docs/src/pages/[slug].astro b/docs/src/pages/[...slug].astro similarity index 86% rename from docs/src/pages/[slug].astro rename to docs/src/pages/[...slug].astro index 7c08ff268..613e2b3d5 100644 --- a/docs/src/pages/[slug].astro +++ b/docs/src/pages/[...slug].astro @@ -1,11 +1,10 @@ --- export async function getStaticPaths() { // get english pages that moved from `/` to `/en/` - const englishPages = Astro.fetchContent('./en/**.md'); + const englishPages = Astro.fetchContent('./en/**/*.md'); // add pages that are `*.astro` files as well const otherPages = [{ url: "/en/themes" }]; - return [...englishPages, ...otherPages].map((page) => ({ params: { slug: page.url.slice(4), @@ -17,4 +16,4 @@ export async function getStaticPaths() { } --- - \ No newline at end of file +