Skip to content

Commit d4375aa

Browse files
bholmesdevoz-agent
andcommitted
feat(www): improve SEO/AEO with site config, robots.txt, structured data, and optimized titles
- Add site URL to astro.config.mjs to enable sitemap generation and canonical URLs - Add Organization JSON-LD structured data site-wide - Add robots.txt with sitemap reference - Remove emoji from page titles (move to sidebar labels only) for cleaner SERP display - Improve meta descriptions with keyword-rich, specific content - Add WebSite JSON-LD schema to homepage - Add SoftwareSourceCode JSON-LD schema to Store, Scope, and Query pages Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 70cb101 commit d4375aa

6 files changed

Lines changed: 54 additions & 10 deletions

File tree

www/astro.config.mjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ 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 🌱",
@@ -13,6 +14,22 @@ export default defineConfig({
1314
},
1415
{ icon: "discord", label: "Discord", href: "https://wtw.dev/chat" },
1516
],
17+
head: [
18+
{
19+
tag: "script",
20+
attrs: { type: "application/ld+json" },
21+
content: JSON.stringify({
22+
"@context": "https://schema.org",
23+
"@type": "Organization",
24+
name: "Simple Stack",
25+
url: "https://simple-stack.dev",
26+
logo: "https://simple-stack.dev/favicon.svg",
27+
sameAs: [
28+
"https://github.com/bholmesdev/simple-stack",
29+
],
30+
}),
31+
},
32+
],
1633
sidebar: [
1734
{
1835
label: "💾 Store",

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/index.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
---
2-
title: Simple stack 🌱
3-
description: A suite of tools built for Astro to simplify your workflow.
2+
title: Simple Stack
3+
description: Lightweight, focused tools for web development. Includes a reactive state management store for React, build-time scoped IDs for Vite, and DOM querying utilities for Astro.
44
tableOfContents: false
55
head:
66
- tag: title
7-
content: Simple stack 🌱
7+
content: Simple Stack — Lightweight Tools for Web Development
8+
- tag: script
9+
attrs:
10+
type: application/ld+json
11+
content: '{"@context":"https://schema.org","@type":"WebSite","name":"Simple Stack","url":"https://simple-stack.dev","description":"Lightweight, focused tools for web development including reactive state management, scoped IDs, and DOM querying utilities."}'
812
---
913

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

www/src/content/docs/query.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
---
2-
title: 💰 Simple Query
3-
description: A simple library to query the DOM from your Astro components.
2+
title: Simple Query — DOM Querying for Astro Components
3+
description: A simple library to query the DOM from Astro components with scoped selectors, signals support, and server data passing.
4+
sidebar:
5+
label: 💰 Simple Query
6+
head:
7+
- tag: script
8+
attrs:
9+
type: application/ld+json
10+
content: '{"@context":"https://schema.org","@type":"SoftwareSourceCode","name":"@simplestack/query","description":"A simple library to query the DOM from Astro components with scoped selectors and signals.","codeRepository":"https://github.com/bholmesdev/simplestack-query","programmingLanguage":"TypeScript","license":"https://opensource.org/licenses/MIT"}'
411
---
512

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

www/src/content/docs/scope.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
---
2-
title: 🔎 Simple scope
3-
description: Get a scoped ID for whatever file you're in. Resolved at build-time with zero client JS.
2+
title: Simple Scope — Build-time Scoped IDs for Vite
3+
description: Generate scoped IDs for any file at build-time with zero client JS. A Vite plugin compatible with Astro, Nuxt, SvelteKit, and more.
4+
sidebar:
5+
label: 🔎 Simple Scope
6+
head:
7+
- tag: script
8+
attrs:
9+
type: application/ld+json
10+
content: '{"@context":"https://schema.org","@type":"SoftwareSourceCode","name":"vite-plugin-simple-scope","description":"A Vite plugin that generates scoped IDs for any file at build-time with zero client JS.","codeRepository":"https://github.com/bholmesdev/simplestack-scope","programmingLanguage":"TypeScript","license":"https://opensource.org/licenses/MIT"}'
411
---
512

613
import { LinkCard } from '@astrojs/starlight/components';

www/src/content/docs/store.mdx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
---
2-
title: 💾 Simple store
3-
description: A reactive store that combines the simplicity of signals with the power of "selectors" you'd find in Zustand or Redux.
2+
title: Simple Store — Reactive State Management for React
3+
description: A reactive store that combines the simplicity of signals with the power of selectors you'd find in Zustand or Redux. Supports sub-stores, middleware, and Next.js SSR.
44
sidebar:
5-
label: Get started
5+
label: 💾 Get started
66
order: 1
7+
head:
8+
- tag: script
9+
attrs:
10+
type: application/ld+json
11+
content: '{"@context":"https://schema.org","@type":"SoftwareSourceCode","name":"@simplestack/store","description":"A reactive state management library for React with signal-based stores and selectors.","codeRepository":"https://github.com/bholmesdev/simplestack-store","programmingLanguage":"TypeScript","runtimePlatform":"Node.js","license":"https://opensource.org/licenses/MIT"}'
712
---
813

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

0 commit comments

Comments
 (0)