From 9ca7b3b6d8b52d017ab39e75f7f4edaf4084d172 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Tue, 19 Aug 2025 13:10:12 +0330 Subject: [PATCH] meta description --- src/app/products/[id]/page.tsx | 2 +- src/app/products/types/ProductTypes.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/products/[id]/page.tsx b/src/app/products/[id]/page.tsx index 87f9c8c..742265d 100644 --- a/src/app/products/[id]/page.tsx +++ b/src/app/products/[id]/page.tsx @@ -24,7 +24,7 @@ export async function generateMetadata( return { title: service.data.danakService.pageTitle || 'محصولات داناک' + ' | ' + service.data.danakService.name, - description: (service.data.danakService.metaDescription || '').replace(/<[^>]*>/g, ''), + description: service.data.danakService.pageDescription, } } diff --git a/src/app/products/types/ProductTypes.ts b/src/app/products/types/ProductTypes.ts index eb58e5f..a3afca7 100644 --- a/src/app/products/types/ProductTypes.ts +++ b/src/app/products/types/ProductTypes.ts @@ -61,6 +61,7 @@ export interface DanakService { coverUrl: string; slug: string; pageTitle: string; + pageDescription: string; category: { id: string; title: string;