feat(seo): crawlable card links, listing metadata, similar prefetch
Following links reached only 37 of 1873 urls and the frontier was exhausted at depth 3, because detail pages rendered no internal links server side. - Prefetch similar shows on detail pages so their links land in the ssr html. Crawl reach goes from 37 pages to 782 and keeps growing. Credits are left client side on purpose: dehydrating aggregate_credits pushed a series page from 52kb to 600kb to surface only ten person links. - Replace the aria-label on poster links with sr-only text, so the anchors carry real anchor text instead of being empty. Text content is also a better accessible name than aria-label. - Give popular and top their own openGraph and twitter tags. They inherited the generic homepage title and description. - Add og:image:alt on movie, tv and person pages. - Add ItemList json-ld to the listing pages. - Drop favorites, watchlist and opengraph-image from the sitemap, and remove the robots.txt disallow that kept crawlers from reading their noindex. - Raise detail revalidate to a week. Cast and release dates barely move, and it cuts regenerations, isr writes and origin transfer sevenfold now that more pages get crawled. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
01792a9669
commit
0186c793f2
9 files changed
+87
-22
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { SITE_URL } from '@/env';
|
||||
|
||||
import { showPath } from './utils';
|
||||
|
||||
export const itemList = (shows: Show[]) => ({
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'ItemList',
|
||||
itemListElement: shows.map((show, index) => ({
|
||||
'@type': 'ListItem',
|
||||
position: index + 1,
|
||||
url: `${SITE_URL}${showPath(show)}`,
|
||||
name: show.title
|
||||
}))
|
||||
});
|
||||
Reference in new issue
Block a user