-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseLayout.astro
More file actions
35 lines (32 loc) · 770 Bytes
/
BaseLayout.astro
File metadata and controls
35 lines (32 loc) · 770 Bytes
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
29
30
31
32
33
34
35
---
import "../styles/global.css";
export interface Props {
title: string;
}
const { title } = Astro.props;
const isProd = import.meta.env.PROD;
---
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
{
isProd && (
<script
type="text/partytown"
defer
data-domain="milan-codes.github.io"
src="https://plausible.io/js/script.js"
is:inline
/>
)
}
</head>
<body class="mx-auto max-w-3xl bg-gray-50 px-4 dark:bg-[#0a0a0a]">
<slot />
</body>
</html>