/
Layout.astro
155 lines (142 loc) · 4.17 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
---
import { SITE } from "@config";
import "@styles/base.css";
import { Schema } from "astro-seo-schema";
export interface Props {
title?: string;
author?: string;
description?: string;
ogImage?: string;
canonicalURL?: string;
}
const {
title = SITE.title,
author = SITE.author,
description = SITE.desc,
ogImage = SITE.ogImage,
canonicalURL = new URL(Astro.url.pathname, Astro.site).href,
} = Astro.props;
const socialImageURL = new URL(
ogImage ? ogImage : SITE.ogImage,
Astro.url.origin
).href;
---
<!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" />
<link rel="canonical" href={canonicalURL} />
<meta name="generator" content={Astro.generator} />
<!-- Schema.org -->
<Schema
item={{
"@context": "https://schema.org",
"@type": "Person",
name: "Jeff Ruane",
gender: "https://schema.org/Male",
hasOccupation: {
"@type": "Occupation",
name: "Senior Software Engineer",
},
address: {
"@type": "PostalAddress",
addressLocality: "Denver",
addressRegion: "Colorado",
addressCountry: "US",
},
knowsAbout: [
"Python",
"SQL",
"Data pipelines",
"Relational databases",
"Columnar databases",
"API design",
],
alumniOf: {
"@type": "EducationalOrganization",
name: "Turing School of Software and Design",
sameAs: "https://turing.edu",
},
email: "jeff@jbrr.dev",
sameAs: [
"https://twitter.com/jefbrr",
"https://mastodon.sdf.org/@jbrr",
"https://github.com/jbrr",
"https://flickr.com/photos/eioua",
"https://bsky.app/profile/skipper.fart.boats",
"https://linkedin.com/in/jeffruane",
],
}}
/>
<!-- General Meta Tags -->
<title>{title}</title>
<meta name="title" content={title} />
<meta name="description" content={description} />
<meta name="author" content={author} />
<link rel="sitemap" href="/sitemap-index.xml" />
<!-- Open Graph / Facebook -->
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:url" content={canonicalURL} />
<meta property="og:image" content={socialImageURL} />
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content={canonicalURL} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={description} />
<meta property="twitter:image" content={socialImageURL} />
<!--Font-->
<link
rel="preload"
href="/fonts/ibm-plex-sans-var.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>
<link
rel="preload"
href="/fonts/ibm-plex-sans-var-italic.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>
<link
rel="preload"
href="/fonts/ibm-plex-mono.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>
<link
rel="preload"
href="/fonts/ibm-plex-mono-italic.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>
<link
rel="preload"
href="/fonts/work-sans-bold-italic.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>
<link rel="preconnect" href="/" crossorigin />
<!-- Privacy ensured metrics -->
<script defer data-domain="jbrr.dev" src="/js/script.js"></script>
<!--IndieWeb-->
<!--IndieAuth-->
<link rel="authorization_endpoint" href="https://indieauth.com/auth" />
<link rel="token_endpoint" href="https://tokens.indieauth.com/token" />
<!--webmention.io-->
<link rel="webmention" href="https://webmention.io/jbrr.dev/webmention" />
<!--Sitemap-->
<link rel="sitemap" href="/sitemap-index.xml" />
<script is:inline src="/toggle-theme.js"></script>
</head>
<body>
<slot />
</body>
</html>