Skip to content

Commit 441e386

Browse files
committed
feat(seo): add JSON-LD schema markup to homepage and docs pages
1 parent b3c711b commit 441e386

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

src/routes/+page.svelte

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@
2121
<meta name="twitter:title" content="OpenBoot - Automate macOS dev environment setup" />
2222
<meta name="twitter:description" content="CLI that installs Homebrew packages, apps, shell config, dotfiles, and macOS preferences in one run. Open source, zero telemetry." />
2323
<meta name="twitter:image" content="https://openboot.dev/og-image.png" />
24+
<script type="application/ld+json">{JSON.stringify({
25+
"@context": "https://schema.org",
26+
"@type": "SoftwareApplication",
27+
"name": "OpenBoot",
28+
"url": "https://openboot.dev",
29+
"applicationCategory": "DeveloperApplication",
30+
"operatingSystem": "macOS",
31+
"description": "Set up your Mac dev environment in one command. Installs Homebrew packages, apps, shell config, dotfiles, and macOS preferences. Snapshot your setup and share it with your team.",
32+
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" },
33+
"license": "https://github.com/openbootdotdev/openboot/blob/main/LICENSE",
34+
"codeRepository": "https://github.com/openbootdotdev/openboot",
35+
"publisher": {
36+
"@type": "Organization",
37+
"name": "OpenBoot",
38+
"url": "https://openboot.dev"
39+
}
40+
})}</script>
2441
</svelte:head>
2542

2643
<div class="page-wrapper">

src/routes/docs/[slug]/+page.svelte

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,23 @@
3333
<meta property="og:url" content="https://openboot.dev/docs/{slug}" />
3434
<meta property="og:type" content="article" />
3535
<link rel="canonical" href="https://openboot.dev/docs/{slug}" />
36+
<script type="application/ld+json">{JSON.stringify({
37+
"@context": "https://schema.org",
38+
"@type": "TechArticle",
39+
"headline": `${meta?.title ?? 'Docs'} — OpenBoot Docs`,
40+
"description": meta?.description || 'Documentation for OpenBoot — the open-source macOS development environment setup tool.',
41+
"url": `https://openboot.dev/docs/${slug}`,
42+
"isPartOf": {
43+
"@type": "TechArticle",
44+
"name": "OpenBoot Documentation",
45+
"url": "https://openboot.dev/docs"
46+
},
47+
"publisher": {
48+
"@type": "Organization",
49+
"name": "OpenBoot",
50+
"url": "https://openboot.dev"
51+
}
52+
})}</script>
3653
</svelte:head>
3754
3855
<article class="prose">

0 commit comments

Comments
 (0)