feat(seo): canonical tags, sitemap, robots, per-page OG images#11
Open
ggonzalez94 wants to merge 1 commit intomainfrom
Open
feat(seo): canonical tags, sitemap, robots, per-page OG images#11ggonzalez94 wants to merge 1 commit intomainfrom
ggonzalez94 wants to merge 1 commit intomainfrom
Conversation
Adds the foundational SEO surface the docs site was missing:
- Per-page <link rel="canonical">, og:url, og:site_name, og:locale, and
twitter:site injected via Vocs's native head({ path }) hook.
- Dynamic per-page OG images via Vocs's hosted API (ogImageUrl, object
form — the string form short-circuits in useOgImageUrl on v1.4.1).
- baseUrl wired to the existing siteUrl chain so Vocs emits <base> and
resolves %logo for OG image rendering.
- iconUrl set so <link rel="icon"> ships in <head>.
- sitemap.xml + robots.txt generated by extending the existing post-build
walker in scripts/substitute-site-url.mjs. Previews emit Disallow: /
and every page gets noindex so Vercel preview URLs never compete with
production in search.
- Homepage H1/title rewritten so titleTemplate no longer produces the
broken "Taiko - Taiko" tag, and 13 short meta descriptions rewritten
from 40–80 characters to 140–160 with primary keywords.
Renames vocs.config.ts -> vocs.config.tsx because head({ path }) uses
JSX. Updates the lone tsconfig.json + site-url.mjs references.
Verified locally on both prod (VERCEL_ENV=production) and preview builds:
canonical + og:image + robots + sitemap all emit correctly per environment.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Run an SEO audit using this skill and applied the recommended fixes