Skip to content

Commit dd72e92

Browse files
authored
Merge branch 'main' into i18n
2 parents 9760759 + 79daf1c commit dd72e92

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

Diff for: 2025/astro.config.mjs

-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ export default defineConfig({
1212
serializeConfig: true,
1313
},
1414

15-
redirects: {
16-
'/': '/2025/ja',
17-
'/2025': '/2025/ja',
18-
},
19-
2015
vite: {
2116
optimizeDeps: {
2217
exclude: [
File renamed without changes.

Diff for: 2025/src/layouts/Layout.astro

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import favicon from '@/assets/favicon.ico?url';
23
import Footer from '@/components/Footer.astro';
34
import Header from '@/components/Header.astro';
45
import { BASE_URL } from '@/consts';
@@ -16,7 +17,8 @@ const ogImageUrl = ufo.joinURL(BASE_URL, 'og.png');
1617
<!DOCTYPE html>
1718
<html lang={lang}>
1819
<head>
19-
<meta charset="utf-8" />
20+
<slot name="header" />
21+
<meta charset="utf-8" />
2022
<GoogleFontsOptimizer url="https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&display=swap" />
2123
<SEO
2224
{title}
@@ -37,7 +39,7 @@ const ogImageUrl = ufo.joinURL(BASE_URL, 'og.png');
3739
image: ogImageUrl,
3840
}}
3941
extend={{
40-
link: [{ rel: 'icon', href: '/favicon.ico' }],
42+
link: [{ rel: 'icon', href: favicon }],
4143
}}
4244
/>
4345
</head>

Diff for: 2025/src/pages/index.astro

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
import Layout from '@/layouts/Layout.astro';
3+
---
4+
<Layout>
5+
<Fragment slot="header">
6+
<meta http-equiv="refresh" content="0;url=/2025/ja" />
7+
</Fragment>
8+
</Layout>

0 commit comments

Comments
 (0)