Skip to content

fix(seo): unique SSR titles for all doc pages#109

Merged
jaysin586 merged 2 commits intomainfrom
fix/seo-unique-titles
Mar 8, 2026
Merged

fix(seo): unique SSR titles for all doc pages#109
jaysin586 merged 2 commits intomainfrom
fix/seo-unique-titles

Conversation

@jaysin586
Copy link
Contributor

Summary

  • Adds 21 +page.ts load functions providing unique title and description for every route via $page.data
  • Fixes Ahrefs Site Audit "Title Too Short" warnings — all pages previously showed "Memory Cache" (12 chars) to crawlers
  • Titles now render server-side (30–60 chars each), so crawlers see descriptive <title> tags without waiting for client hydration

Test plan

  • pnpm build passes with no errors
  • pnpm preview — verified <title> tags in SSR HTML for home, getting-started, basic-cache, and rate-limiting pages
  • Re-run Ahrefs Site Audit after deploy to confirm warnings are resolved

🤖 Generated with Claude Code

Add 21 +page.ts files so every route provides title and description
via $page.data, ensuring crawlers see unique descriptive <title> tags
instead of the generic "Memory Cache" fallback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Mar 8, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 3932ef7f-9577-410d-b106-0c0d0c8370ac

📥 Commits

Reviewing files that changed from the base of the PR and between ed22b7e and cf58a39.

📒 Files selected for processing (2)
  • AGENTS.md
  • CLAUDE.md
✅ Files skipped from review due to trivial changes (1)
  • AGENTS.md

📝 Walkthrough

Walkthrough

Adds ~30 new SvelteKit route modules exporting load functions that return static page metadata (title and description) for docs, API reference, and examples; also adds/edits small markdown files (AGENTS.md, CLAUDE.md). No runtime logic or side effects introduced.

Changes

Cohort / File(s) Summary
Root & Examples hubs
docs/src/routes/+page.ts, docs/src/routes/examples/+page.ts
Added export const load() returning page metadata for the site root and interactive examples hub.
API docs
docs/src/routes/docs/api/cached-decorator/+page.ts, docs/src/routes/docs/api/memory-cache/+page.ts
Added load functions returning title/description for API reference pages.
Docs — Examples pages
docs/src/routes/docs/examples/*/+page.ts (api-caching, async-fetching, computed-values, configuration, database-caching, monitoring, multi-tenant, rate-limiting, service-class, sessions, ...)
Added load functions to many example docs routes; each returns static title and description metadata.
Interactive example pages
docs/src/routes/examples/*/+page.ts (basic-cache, cache-statistics, lru-eviction, ttl-expiration, ...)
Added per-route load functions returning metadata for interactive example pages.
Getting started
docs/src/routes/docs/getting-started/+page.ts
Added load returning title/description for the Getting Started page.
Docs / repo notes
AGENTS.md, CLAUDE.md
Added AGENTS.md; updated CLAUDE.md content/headers and project description text.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

documentation

Poem

New pages hum with metadata's light, ✨
Titles and descriptions placed just right.
Docs and examples all in a row,
Tiny load functions set the SEO glow. 📚🎉

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main objective: adding unique SSR titles to documentation pages to fix SEO issues identified by Ahrefs Site Audit.
Description check ✅ Passed The description clearly explains the purpose, implementation approach (21 load functions with unique titles/descriptions), and the specific SEO problem being solved (replacing generic 'Memory Cache' title).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/seo-unique-titles

Comment @coderabbitai help to get the list of available commands and usage tips.

@jaysin586 jaysin586 added the skip-publish This is something important, but we dont want to publish it label Mar 8, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jaysin586 jaysin586 merged commit 1052f23 into main Mar 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-publish This is something important, but we dont want to publish it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant