diff options
| author | IwanIDev <iwan@iwani.dev> | 2026-03-21 15:43:12 +0000 |
|---|---|---|
| committer | IwanIDev <iwan@iwani.dev> | 2026-03-21 15:43:12 +0000 |
| commit | 42ca90ee1f0aadaa09888f1c9627657abcd866b2 (patch) | |
| tree | a9291ad2afae2f7367924fcb8b36a36a6d79c497 /src/layouts | |
| parent | c2ad94b04f290b5197a1cc80c98015be9e7b25da (diff) | |
feat: implement PostHeader component and add blog post route
Diffstat (limited to 'src/layouts')
| -rw-r--r-- | src/layouts/main.astro | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/layouts/main.astro b/src/layouts/main.astro index 69b80d2..30ac84d 100644 --- a/src/layouts/main.astro +++ b/src/layouts/main.astro @@ -1,13 +1,26 @@ --- +import { ViewTransitions } from "astro:transitions"; import "@/styles/global.css" + +interface Props { + title?: string; + description?: string; +} + +const { + title = "Astro App", + description = "Astro blog" +} = Astro.props as Props; --- <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> + <ViewTransitions /> <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> - <title>Astro App</title> + <title>{title}</title> + <meta name="description" content={description} /> </head> <body> <slot /> |
