-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Layout.astro
105 lines (99 loc) · 3.03 KB
/
Layout.astro
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
import "../styles/globals.css";
export interface Props {
title: string;
description: string;
ogImage?: URL;
url?: URL;
}
const {
title,
description,
ogImage = new URL("/meta/og.jpg", Astro.url),
} = Astro.props;
const pathname = Astro.url.pathname;
const url =
pathname[pathname.length - 1] === "/"
? new URL(pathname.slice(0, pathname.length - 1), Astro.site)
: new URL(Astro.url.pathname, Astro.site);
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<meta name="generator" content={Astro.generator} />
<meta name="google-site-verification" content="QabE4pgOKR5rQ45trqzVGARIOV6c3OB0FW_ZBUJtQqQ" />
<title>{title}</title>
<meta name="description" content={description} />
<meta name="author" content="Judit Lázaro Moyano" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@v_karamazov" />
<meta name="twitter:creator" content="@v_karamazov" />
<meta
content={description}
name="twitter:description"
property="og:description"
/>
<meta name="twitter:title" property="og:title" content={title} />
<meta property="twitter:url" content={url} />
<meta name="twitter:image" content={ogImage.href} />
<meta property="og:url" content={url} />
<meta property="og:title" content={title} />
<meta property="og:image" content={ogImage.href} />
<meta property="og:description" content={description} />
<link rel="canonical" href={url} />
<link
rel="preload"
href="/fonts/outfit-v4-latin-regular.woff2"
as="font"
crossorigin="anonymous"
/>
<link
rel="preload"
href="/fonts/outfit-v4-latin-500.woff2"
as="font"
crossorigin="anonymous"
/>
<link
rel="preload"
href="/fonts/outfit-v4-latin-700.woff2"
as="font"
crossorigin="anonymous"
/>
<link
rel="preload"
href="/fonts/outfit-v4-latin-900.woff2"
as="font"
crossorigin="anonymous"
/>
<link
rel="preload"
href="/fonts/paytone-one-v16-latin-regular.woff2"
as="font"
crossorigin="anonymous"
/>
<link
rel="preload"
href="/fonts/firacode-regular.woff2"
as="font"
crossorigin="anonymous"
/>
<script
defer
src="https://cloud.umami.is/script.js"
data-website-id="4dd6cb91-57fb-48d5-9606-d73b7403827e">
</script>
</head>
<body>
<slot />
</body>
</html>