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
build-and-deploy / build (push) Failing after 10m35s
This commit is contained in:
@@ -53,6 +53,26 @@ const ogImage = new URL(site.ogImage, site.url).href;
|
|||||||
<!-- Single external script: pre-paint theme + toggle + scroll reveal.
|
<!-- Single external script: pre-paint theme + toggle + scroll reveal.
|
||||||
Blocking in <head> so the theme is set before first paint (no flash).
|
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'. -->
|
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>
|
<script is:inline src="/site.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user