Skip to content

Fix SEO metadata and generate sitemap - #3

Open
manmohm wants to merge 1 commit into
AccountMap:mainfrom
manmohm:codex/seo-sitemap
Open

Fix SEO metadata and generate sitemap#3
manmohm wants to merge 1 commit into
AccountMap:mainfrom
manmohm:codex/seo-sitemap

Conversation

@manmohm

@manmohm manmohm commented Aug 24, 2026

Copy link
Copy Markdown

Closes #1

What changed

  • add a single source of truth for the canonical origin and landing-page metadata
  • add a descriptive title, meta description, canonical URL, Open Graph tags, and Twitter card tags
  • generate prerendered /sitemap.xml and /robots.txt routes from the public-route list
  • add dependency-free tests against the actual static build output
  • document the SEO verification command

The sitemap endpoint follows SvelteKit's documented dynamic-endpoint pattern.

Verification

  • npm test — 3 tests passed
  • local production preview:
    • / → 200 text/html
    • /sitemap.xml → 200 XML with one canonical URL
    • /robots.txt → 200 text/plain with the sitemap directive
    • social preview image → 200

The test suite also prevents the previous HTML fallback from being accepted as either the sitemap or robots file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SEO Optimization & Dynamic Sitemap

1 participant