Build a programmatic SEO page template
One route, hundreds of pages: a data-driven comparison template with clean internal linking and real metadata.
Create a programmatic SEO template for [TOPIC] comparison pages. ROUTE /compare/:slug where slug looks like "tool-a-vs-tool-b". DATA A typed array in one file. Each entry: slug, both item names, excerpt, verdict, a table of 6 comparison metrics, 3 body sections, updated date. Seed 8 realistic entries. PAGE STRUCTURE 1. Breadcrumb. 2. H1 with both names, updated date, reading time. 3. "The short answer" — two decision cards, one per option. 4. Comparison table built from the metrics array. 5. Three body sections rendered from the data. 6. Verdict block. 7. Related comparisons: 3 links sharing an item with this page. SEO - Unique title and meta description per page, generated from the data. - One H1 only, logical heading order. - Internal links to both item detail pages. - An index page at /compare listing everything. ACCEPTANCE CRITERIA - Adding a new entry to the data file creates a working page with no other change. - An unknown slug renders a proper 404, not a blank screen.