summaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2022-01-04 09:10:27 -0800
committerGravatar GitHub <noreply@github.com> 2022-01-04 09:10:27 -0800
commitc80c7f677c8ba42efdbd399fd5bf9cf3c191856f (patch)
tree2717023bee33648b913a2d1a40f16776c1692814 /docs/src
parente5019271a5b549a3a0b7a8b92bf919f2572a78c4 (diff)
downloadastro-c80c7f677c8ba42efdbd399fd5bf9cf3c191856f.tar.gz
astro-c80c7f677c8ba42efdbd399fd5bf9cf3c191856f.tar.zst
astro-c80c7f677c8ba42efdbd399fd5bf9cf3c191856f.zip
Rename [slug].astro to [...slug].astro (#2306)
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/pages/[...slug].astro (renamed from docs/src/pages/[slug].astro)5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/src/pages/[slug].astro b/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() {
}
---
-<meta http-equiv="refresh" content={`0;url=${Astro.props.englishSlug}`} /> \ No newline at end of file
+<meta http-equiv="refresh" content={`0;url=${Astro.props.englishSlug}`} />