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({
1313 } ,
1414
1515 redirects : {
16- '/' : '/2025/ja' ,
17- '/2025' : '/2025/ja' ,
16+ '/' : '/2025' ,
1817 } ,
1918
2019 vite : {
Original file line number Diff line number Diff line change 22// @ts-expect-error not found
33import { base } from ' astro:config/client' ;
44
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 ();
612const pathname = Astro .url .pathname .replace (import .meta .env .BASE_URL , ' ' );
713const currentLang = pathname .split (' /' )[1 ];
814---
@@ -13,7 +19,7 @@ const currentLang = pathname.split('/')[1];
1319 { lang .toUpperCase ()}
1420 </a >
1521 { i < languages .length - 1 && <span class = " separator" >/</span >}
16- </>
22+ </>
1723 ))}
1824</div >
1925
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