feat(www): SEO technical + on-page improvements (#12)

This commit was merged in pull request #12.
This commit is contained in:
2026-09-02 09:10:50 +00:00
parent 9611567daa
commit 08b0f79f07
8 changed files with 68 additions and 5 deletions
+23
View File
@@ -108,3 +108,26 @@ export function buildBreadcrumbJsonLd(
export function buildTitle(primary: string, brand = "Gridline"): string {
return `${primary} | ${brand}`;
}
export function buildProductJsonLd(opts: {
name: string;
url: string;
description: string;
image: string;
offersPrice: number;
offersCurrency: string;
}): JsonLd {
return {
"@context": "https://schema.org",
"@type": "Product",
name: opts.name,
url: opts.url,
description: opts.description,
image: opts.image,
offers: {
"@type": "Offer",
price: opts.offersPrice,
priceCurrency: opts.offersCurrency,
},
};
}