blob: 1bf7faa7c2e26a29e701f83d54af7853aaaba0ca [file] [log] [blame]
Samuel Shuert86826b82024-04-27 16:14:20 -04001---
2// Import the global.css file here so that it is included on
3// all pages through the use of the <BaseHead /> component.
4import '../styles/global.css';
5
6interface Props {
7 title: string;
8 description: string;
Samuel Shuert86826b82024-04-27 16:14:20 -04009}
10
11const canonicalURL = new URL(Astro.url.pathname, Astro.site);
12
Samuel Shuert21af95a2024-04-30 17:49:11 -040013const { title, description } = Astro.props;
Samuel Shuert86826b82024-04-27 16:14:20 -040014---
15
16<!-- Global Metadata -->
17<meta charset="utf-8" />
18<meta name="viewport" content="width=device-width,initial-scale=1" />
19<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
20<meta name="generator" content={Astro.generator} />
21
22<!-- Font preloads -->
Samuel Shuert39632832024-04-29 20:54:19 -040023<link rel="preconnect" href="https://fonts.googleapis.com">
24<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
25<link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap" rel="stylesheet">
Samuel Shuert86826b82024-04-27 16:14:20 -040026
27<!-- Canonical URL -->
28<link rel="canonical" href={canonicalURL} />
29
30<!-- Primary Meta Tags -->
31<title>{title}</title>
32<meta name="title" content={title} />
33<meta name="description" content={description} />
34
35<!-- Open Graph / Facebook -->
36<meta property="og:type" content="website" />
37<meta property="og:url" content={Astro.url} />
38<meta property="og:title" content={title} />
39<meta property="og:description" content={description} />
Samuel Shuert86826b82024-04-27 16:14:20 -040040
41<!-- Twitter -->
42<meta property="twitter:card" content="summary_large_image" />
43<meta property="twitter:url" content={Astro.url} />
44<meta property="twitter:title" content={title} />
45<meta property="twitter:description" content={description} />