File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ export default defineConfig({
13
13
} ,
14
14
15
15
redirects : {
16
- '/' : '/2025/ja' ,
17
- '/2025' : '/2025/ja' ,
16
+ '/' : '/2025' ,
18
17
} ,
19
18
20
19
vite : {
Original file line number Diff line number Diff line change 2
2
// @ts-expect-error not found
3
3
import { base } from ' astro:config/client' ;
4
4
5
- const languages = Object .keys (import .meta .glob (' ../pages/*.astro' )).map (p => p .split (' /' ).at (- 1 )! .replace (' .astro' , ' ' )).sort ();
5
+ const languages
6
+ = Object .keys (import .meta .glob (' ../pages/*.astro' ))
7
+ .map (p => p .split (' /' )
8
+ .at (- 1 )!
9
+ .replace (' .astro' , ' ' ))
10
+ .filter (lang => lang !== ' index' )
11
+ .sort ();
6
12
const pathname = Astro .url .pathname .replace (import .meta .env .BASE_URL , ' ' );
7
13
const currentLang = pathname .split (' /' )[1 ];
8
14
---
@@ -13,7 +19,7 @@ const currentLang = pathname.split('/')[1];
13
19
{ lang .toUpperCase ()}
14
20
</a >
15
21
{ i < languages .length - 1 && <span class = " separator" >/</span >}
16
- </>
22
+ </>
17
23
))}
18
24
</div >
19
25
Original file line number Diff line number Diff line change
1
+ ---
2
+ import Layout from ' @/layouts/Layout.astro' ;
3
+ ---
4
+ <Layout />
5
+
6
+ <meta http-equiv =" refresh" content =" 0;url=/2025/ja" />
You can’t perform that action at this time.
0 commit comments