Skip to content

feat(seo): link every comparison page and give it its own heading - #327

Merged
matschik merged 1 commit into
mainfrom
feat/seo-internal-links
Oct 19, 2026
Merged

matschik merged 1 commit into
mainfrom
feat/seo-internal-links

Conversation

@matschik

Copy link
Copy Markdown
Owner

Requested by Mathieu

Before: Search Console shows most /compare/ pages as "Discovered" or "Crawled - currently not indexed". The home page had no link to any of them (the footer used /?f= URLs), so Google found them only in the sitemap. Every comparison page had the same <h1>Component Party</h1>.

After: every one of the 153 comparison pages is reachable by plain links, and each has its own <h1> ("React vs Vue 3") and intro line.

  • Footer links use the canonical /compare/{a}-vs-{b}/ path, through a new canonicalComparisonPath() (unit-tested).
  • Comparison pages list every other comparison of their two frameworks.
  • The header keeps the site name as <h1> everywhere except comparison pages.
  • The footer's "Angular vs Angular Renaissance" link compared Angular Renaissance with itself; it now uses Angular Classic.

Checked on the build: all 153 linked /compare/ URLs exist in dist/, check:ci and 33 unit tests pass, no console errors in the browser.

- Footer links point at the prerendered /compare/ pages instead of ?f= URLs.
- Each comparison page gets an h1 with its pair, an intro line, and links to
  every other comparison of its two frameworks.
- Fix the footer's Angular legacy link, which compared Angular Renaissance
  with itself.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Deploying component-party with  Cloudflare Pages  Cloudflare Pages

Latest commit: c05aab2
Status: ✅  Deploy successful!
Preview URL: https://9908c4f3.component-party.pages.dev
Branch Preview URL: https://feat-seo-internal-links.component-party.pages.dev

View logs

@matschik
matschik merged commit 511a3cc into main Oct 19, 2026
3 checks passed
@matschik
matschik deleted the feat/seo-internal-links branch October 19, 2026 01:18
matschik added a commit that referenced this pull request Oct 23, 2026
.void/deploy was committed by accident in #327. Its 155 prerendered
HTML pages make GitHub report the repository as 98.9% HTML.
matschik added a commit that referenced this pull request Oct 23, 2026
.void/deploy was committed by accident in #327. Its 155 prerendered
HTML pages make GitHub report the repository as 98.9% HTML.
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.

1 participant