Skip to content

Commit 23c3b6d

Browse files
bholmesdevoz-agent
andcommitted
feat(www): SEO & AEO improvements
- Add site URL (https://simple-stack.dev) to astro.config.mjs enabling canonical URLs, sitemap generation, and proper OG meta tags - Add WebSite + Person JSON-LD structured data for search engine and AI engine discoverability - Add robots.txt pointing to sitemap - Remove redundant custom title head override on homepage - Add noindex meta to deprecated pages (stream, form/*) to preserve crawl budget - Add title attribute to video element in stream.md for accessibility Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 70cb101 commit 23c3b6d

7 files changed

Lines changed: 58 additions & 4 deletions

File tree

www/astro.config.mjs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,42 @@ import starlight from "@astrojs/starlight";
22
import { defineConfig } from "astro/config";
33

44
export default defineConfig({
5+
site: "https://simple-stack.dev",
56
integrations: [
67
starlight({
78
title: "Simple Stack 🌱",
9+
description:
10+
"A suite of tools built for Astro to simplify your workflow. Includes Simple Store, Simple Scope, and Simple Query.",
11+
head: [
12+
{
13+
tag: "meta",
14+
attrs: {
15+
property: "og:type",
16+
content: "website",
17+
},
18+
},
19+
{
20+
tag: "script",
21+
attrs: { type: "application/ld+json" },
22+
content: JSON.stringify({
23+
"@context": "https://schema.org",
24+
"@type": "WebSite",
25+
name: "Simple Stack",
26+
url: "https://simple-stack.dev",
27+
description:
28+
"A suite of tools built for Astro to simplify your workflow.",
29+
author: {
30+
"@type": "Person",
31+
name: "Ben Holmes",
32+
url: "https://bholmes.dev",
33+
sameAs: [
34+
"https://github.com/bholmesdev",
35+
"https://twitter.com/baborbuilt",
36+
],
37+
},
38+
}),
39+
},
40+
],
841
social: [
942
{
1043
icon: "github",

www/public/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Allow: /
3+
4+
Sitemap: https://simple-stack.dev/sitemap-index.xml

www/src/content/docs/form/client.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ title: Add client validation
33
description: Add client validation to your forms
44
sidebar:
55
order: 3
6+
head:
7+
- tag: meta
8+
attrs:
9+
name: robots
10+
content: noindex, follow
611
---
712

813
:::caution

www/src/content/docs/form/index.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ description: The simple way to validate forms in your fullstack app.
44
sidebar:
55
label: Get started
66
order: 1
7+
head:
8+
- tag: meta
9+
attrs:
10+
name: robots
11+
content: noindex, follow
712
---
813

914
import { Tabs, TabItem } from '@astrojs/starlight/components';

www/src/content/docs/form/parse.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ title: Parse form requests
33
description: Validate forms server-side
44
sidebar:
55
order: 2
6+
head:
7+
- tag: meta
8+
attrs:
9+
name: robots
10+
content: noindex, follow
611
---
712

813
:::caution

www/src/content/docs/index.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
title: Simple stack 🌱
33
description: A suite of tools built for Astro to simplify your workflow.
44
tableOfContents: false
5-
head:
6-
- tag: title
7-
content: Simple stack 🌱
85
---
96

107
A collection of tools I've built to **make web development simpler.**

www/src/content/docs/stream.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
title: Simple stream 🌊
33
description: Suspend Astro components with fallback content. Like React Server Components, but Just HTML ™️
4+
head:
5+
- tag: meta
6+
attrs:
7+
name: robots
8+
content: noindex, follow
49
---
510

611
:::caution
@@ -9,7 +14,7 @@ description: Suspend Astro components with fallback content. Like React Server C
914

1015
Suspend Astro components with fallback content. Like React Server Components, but Just HTML ™️
1116

12-
<video controls width="100%" style="aspect-ratio:1.65/1" src="/assets/simple-stream-intro.mov"></video>
17+
<video controls width="100%" style="aspect-ratio:1.65/1" src="/assets/simple-stream-intro.mov" title="Simple Stream demo showing Astro component suspension with fallback content"></video>
1318

1419
```astro
1520
---

0 commit comments

Comments
 (0)