Skip to content

feat(seo): per-page Open Graph/Twitter metadata + accurate, length-capped descriptions#602

Merged
rdmueller merged 1 commit into
LLM-Coding:mainfrom
raifdmueller:feat/601-share-metadata
Jun 10, 2026
Merged

feat(seo): per-page Open Graph/Twitter metadata + accurate, length-capped descriptions#602
rdmueller merged 1 commit into
LLM-Coding:mainfrom
raifdmueller:feat/601-share-metadata

Conversation

@raifdmueller

Copy link
Copy Markdown
Contributor

Closes #601

Implements findings F1–F3 (+F5) from the post-#598 SEO review.

Changes

  1. Per-page social metadata (applyHead()): every pre-rendered page — 16 routes, home EN/DE, 161+155 anchor pages — now rewrites og:url, og:title, og:description, twitter:url/title/description to its own values (matching title/description/canonical). German pages get og:locale=de_DE with en_US alternate. Previously all subpages shipped the shell's home values, so sharing /anchor/mece rendered the generic home preview.
  2. Accurate home description: the hard-coded "110+ semantic anchors" (real count: 161) is replaced by counts computed from anchors.json/contracts.json at build time — "161 semantic anchors and 19 semantic contracts …". The static shell texts (meta, og, twitter, WebSite JSON-LD) are now count-free so they cannot go stale again.
  3. Normalized description lengths: all meta descriptions are capped at ~160 chars on a word boundary (capDescription()); anchor extracts under 50 chars get the anchor title prefixed ("Clean Architecture — Dependencies only point inward").
  4. v0.6.1 + changelog.

Verification

  • Build sweep over all 340 pre-rendered pages: every description is 40–160 chars (entity-decoded), zero too-short, zero truncation candidates.
  • dist/anchor/mece/: own og:url/og:title/twitter:title; dist/de/about/: og:locale=de_DE + en_US alternate.
  • Home EN/DE descriptions carry the computed counts (161/19).
  • 102 unit tests, 35 E2E tests, ESLint + Prettier green.

🤖 Generated with Claude Code

…tions

applyHead() now rewrites og:url/og:title/og:description and the twitter:
equivalents per pre-rendered page (German pages get og:locale=de_DE), so
shared subpage links render their own preview instead of the generic
home card. The home description states real counts computed from
anchors.json/contracts.json (the hard-coded "110+" understated the 161
anchors); the static shell texts are count-free so they cannot go stale.
All meta descriptions are capped at ~160 chars on a word boundary, and
sub-50-char anchor extracts get the anchor title prefixed. v0.6.1.

SEO review findings F1-F3+F5.

Refs LLM-Coding#601

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@raifdmueller, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 4 minutes and 59 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 32558d2b-7bea-449e-ae73-fa63d6f7ce0c

📥 Commits

Reviewing files that changed from the base of the PR and between d044765 and 5b2f39c.

📒 Files selected for processing (4)
  • docs/changelog.adoc
  • scripts/prerender-routes.js
  • website/index.html
  • website/src/main.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@rdmueller rdmueller merged commit ac87b6f into LLM-Coding:main Jun 10, 2026
7 checks passed
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.

Per-page Open-Graph/Twitter metadata + accurate, length-normalized descriptions (SEO review F1-F3)

2 participants