feat: update Dockerfile, add category pages, fonts and product images
Rebuild Docker setup with simplified nginx-only Dockerfile (build runs on host). Add category detail pages, IRANSans font files, product images, and update all landing sections. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
e31ef5a21f
commit
bb7f1e3378
@@ -63,6 +63,37 @@ export const serviceSchema = (opts: {
|
||||
provider: { "@id": `${s.url}/#organization` },
|
||||
});
|
||||
|
||||
export const categoryPageSchema = (category: {
|
||||
name: string;
|
||||
en: string;
|
||||
fullDesc: string;
|
||||
slug: string;
|
||||
products: { name: string; desc: string }[];
|
||||
}) =>
|
||||
clean({
|
||||
"@context": "https://schema.org",
|
||||
"@type": "CollectionPage",
|
||||
"@id": `${s.url}/categories/${category.slug}`,
|
||||
name: category.name,
|
||||
description: category.fullDesc,
|
||||
url: abs(`/categories/${category.slug}`),
|
||||
isPartOf: { "@id": `${s.url}/#website` },
|
||||
provider: { "@id": `${s.url}/#organization` },
|
||||
mainEntity: {
|
||||
"@type": "ItemList",
|
||||
numberOfItems: category.products.length,
|
||||
itemListElement: category.products.map((p, i) => ({
|
||||
"@type": "ListItem",
|
||||
position: i + 1,
|
||||
item: {
|
||||
"@type": "Product",
|
||||
name: p.name,
|
||||
description: p.desc,
|
||||
},
|
||||
})),
|
||||
},
|
||||
});
|
||||
|
||||
/** Serialize JSON-LD safely for an inline <script> (escape "<"). */
|
||||
export const toJsonLd = (data: Json) =>
|
||||
JSON.stringify(data).replace(/</g, "\\u003c");
|
||||
|
||||
Reference in New Issue
Block a user