You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tidy page titles and Meme breadcrumbs in Google #308
Google search results show two flaws on Petit Meme pages. Every title starts with the brand (buildPageTitle in src/lib/seo/meta.ts writes "Petit Meme - …"), and Google cuts or rewrites it. The breadcrumb Google shows under a Meme page varies from one Meme to the next: "› Memes" on one, "› … › title" on another, though every Meme page declares the same BreadcrumbList (buildBreadcrumbNode and buildCategoryCrumb in src/lib/seo/json-ld.ts, called from memes/-lib/meme-json-ld.ts).
Check: the admin titles go through the same helper and keep their own site name. Where a Meme without a category points its breadcrumb is this issue's call.
Decisions
A public title reads <what the page holds> | Petit Meme, the home included: a pipe, since many Meme titles already hold a hyphen.
A Meme with several categories leads its breadcrumb with the first one linked (MemeCategory.createdAt ascending). Today categories[0] has no order.
A Meme without a category keeps Home › All memes (/memes/category/all) › title, so every Meme page has three levels.
Done when
Every public page title leads with what the page holds, in both locales
Every Meme page gives the same breadcrumb shape, valid in the Rich Results Test
The existing title and breadcrumb tests follow the new shape
A change that needs new URLs stops the issue: comment here.
Activity
fix(seo): lead titles with the page, settle Meme breadcrumbs and ungl…