summaryrefslogtreecommitdiff
path: root/src/layouts/main.astro
blob: 30ac84d45a95780551903f0924154ffa2338b67a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
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>{title}</title>
    <meta name="description" content={description} />
  </head>
  <body>
    <slot />
  </body>
</html>