Skip to content

Commit ae6db0f

Browse files
committed
feat: use slot header
1 parent 8682d3f commit ae6db0f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

2025/src/layouts/Layout.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ const ogImageUrl = ufo.joinURL(BASE_URL, 'og.png');
1717
<!DOCTYPE html>
1818
<html lang={lang}>
1919
<head>
20-
<meta charset="utf-8" />
20+
<slot name="header" />
21+
<meta charset="utf-8" />
2122
<GoogleFontsOptimizer url="https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&display=swap" />
2223
<SEO
2324
{title}

2025/src/pages/index.astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
import Layout from '@/layouts/Layout.astro';
33
---
4-
<Layout />
5-
6-
<meta http-equiv="refresh" content="0;url=/2025/ja" />
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)