add Person and WebSite structured data on the homepage so a search for the name resolves to the right engineer
build-and-deploy / build (push) Failing after 10m35s

This commit is contained in:
2026-08-18 01:15:24 +10:00
parent 6155aca055
commit 0f85bd9870
+20
View File
@@ -53,6 +53,26 @@ const ogImage = new URL(site.ogImage, site.url).href;
<!-- Single external script: pre-paint theme + toggle + scroll reveal.
Blocking in <head> so the theme is set before first paint (no flash).
No inline JS anywhere on the site → strict CSP script-src 'self'. -->
{path === "/" && (
<script
type="application/ld+json"
is:inline
set:html={JSON.stringify({
"@context": "https://schema.org",
"@graph": [
{
"@type": "Person",
"name": site.name,
"jobTitle": site.role,
"url": site.url,
"address": { "@type": "PostalAddress", "addressLocality": site.location },
"knowsAbout": ["Kubernetes", "GitOps", "Infrastructure as Code", "Platform Engineering"],
},
{ "@type": "WebSite", "name": site.name, "url": site.url },
],
})}
/>
)}
<script is:inline src="/site.js"></script>
</head>
<body>